Skip to content

Commit

Permalink
fix silent output [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Insolita committed Apr 15, 2021
1 parent 782de74 commit 41de3b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Lib/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ private function showScanReport(array $map, array $scanResult): int
}

$this->output(PHP_EOL . 'Unused dependencies found!' . PHP_EOL);
array_walk($result, static function ($packageName) {
echo ' -' . $packageName . PHP_EOL;
});
array_walk($result,
function($packageName) {
$this->output(' -' . $packageName . PHP_EOL);
});
return self::HAS_UNUSED_CODE;
}

Expand Down

0 comments on commit 41de3b7

Please sign in to comment.