Skip to content

Commit

Permalink
Merge pull request #2 from addoptify/CJ-1190-Change-Scanner-Function
Browse files Browse the repository at this point in the history
CJ-1190: Change Scanner Function to ScanPackage
  • Loading branch information
milyas-sugarcrm authored Jul 9, 2021
2 parents ab1447d + bcdaf55 commit 5efb1ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Command/ScanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ protected function execute(InputInterface $input, OutputInterface $output)

$scanner = new \ModuleScanner();

$scanner->scanManifest("$root/package/manifest.php");
$scanner->scanDir("$root/package");

$scanner->scanPackage("$root/package");

if ($scanner->hasIssues()) {
$output->writeln('<error>Errors found in package:</error>');
print_r($scanner->getIssues());
Expand Down

0 comments on commit 5efb1ea

Please sign in to comment.