Skip to content

Commit

Permalink
Merge pull request #11 from iranimij/module-finder-improvement
Browse files Browse the repository at this point in the history
Module finder improvement
  • Loading branch information
iranimij authored Jan 15, 2025
2 parents ffd4c67 + 1867bb7 commit 58a13e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Console/Command/ScanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$moduleNames = [];
foreach ($diff as $item) {
$explodedName = explode(DIRECTORY_SEPARATOR, $item->getName());
$namePath = $explodedName[0] . DIRECTORY_SEPARATOR . $explodedName[1];
$namePath = $explodedName[0];

if(isset($explodedName[1])) {
$namePath .= DIRECTORY_SEPARATOR . $explodedName[1];
}

if(isset($explodedName[2])) {
$namePath .= DIRECTORY_SEPARATOR . $explodedName[2];
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "iranimij/magento-git-extension-checker",
"description": "Example module for Magento 2",
"version": "1.0.4",
"version": "1.0.5",
"require": {
"php": "~8.1.0||~8.2.0",
"magento/framework": "103.0.*",
Expand Down

0 comments on commit 58a13e0

Please sign in to comment.