Skip to content

Add theme duplicates command#1739

Open
cmuench wants to merge 3 commits intodevelopfrom
feature/investigate-issue-93-on-github
Open

Add theme duplicates command#1739
cmuench wants to merge 3 commits intodevelopfrom
feature/investigate-issue-93-on-github

Conversation

@cmuench
Copy link
Member

@cmuench cmuench commented Jul 21, 2025

Summary

  • implement dev:theme:duplicates command
  • document the new command
  • test the new command

Related Issue

Testing

  • vendor/bin/phpunit --filter DuplicatesCommandTest
  • vendor/bin/phpunit

https://chatgpt.com/codex/tasks/task_e_687e49e7d234832fafccb48e11e43878

@github-actions
Copy link

github-actions bot commented Jul 21, 2025

Download the artifacts for this pull request:

@cmuench cmuench requested a review from Copilot July 23, 2025 14:19

This comment was marked as outdated.

@cmuench cmuench requested a review from Copilot July 23, 2025 14:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a new command dev:theme:duplicates to find duplicate files between two Magento themes. The command helps developers identify redundant files in their custom themes by comparing them against a reference theme.

  • Adds the DuplicatesCommand class with theme file comparison functionality
  • Includes comprehensive test coverage for the new command
  • Provides documentation for command usage

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/N98/Magento/Command/Developer/Theme/DuplicatesCommand.php Main command implementation with file comparison logic and JUnit logging
tests/N98/Magento/Command/Developer/Theme/DuplicatesCommandTest.php Test coverage for the duplicates command
docs/docs/command-docs/development/index.md Added reference to new command in documentation index
docs/docs/command-docs/development/dev-theme-duplicates.md Complete documentation for the new command
Comments suppressed due to low confidence (2)

src/N98/Magento/Command/Developer/Theme/DuplicatesCommand.php:117

  • The class name 'ConflictsCommand' appears incorrect for a duplicates command. It should be 'DuplicatesCommand' to match the actual command purpose.
        $testCaseElement->setClassname('ConflictsCommand');

tests/N98/Magento/Command/Developer/Theme/DuplicatesCommandTest.php:35

  • The assertContainsPath method is defined but never used in the test. Either remove this unused method or add tests that utilize it to verify path-related functionality.
    private function assertContainsPath($path, $haystack)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@cmuench cmuench assigned cmuench and unassigned cmuench Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants