Skip to content

Commit

Permalink
chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 26, 2023
1 parent 74116e2 commit c213b33
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/CLI/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public function run(array $argv): int
try {
$arguments = $argumentsBuilder->build($argv);
} catch (Throwable $throwable) {
print PHP_EOL . $throwable->getMessage() . PHP_EOL;
echo PHP_EOL . $throwable->getMessage() . PHP_EOL;

return StatusCode::ERROR;
}

print PHP_EOL;
echo PHP_EOL;

if ($arguments->displayHelp()) {
$this->help();
Expand All @@ -41,7 +41,7 @@ public function run(array $argv): int
$filePaths = $phpFilesFinder->findInDirectories($arguments->getDirectories(), $arguments->getSuffixes(), $arguments->getExclude());

if ($filePaths === []) {
print 'No files found to scan' . PHP_EOL;
echo 'No files found to scan' . PHP_EOL;
return StatusCode::ERROR;
}

Expand All @@ -61,19 +61,16 @@ public function run(array $argv): int

private function help(): void
{
print <<<'EOT'
echo <<<'EOT'
Usage:
phploc [options] <directory>
Options for selecting files:
lines <directory> [options]
--suffix <suffix> Include files with names ending in <suffix> in the analysis
(default: .php; can be given multiple times)
(default: ".ph"p; can be given multiple times)
--exclude <path> Exclude files with <path> in their path from the analysis
(can be given multiple times)
Options for report generation:
--log-json <file> Write results in JSON format to <file>
EOT;
}
Expand Down

0 comments on commit c213b33

Please sign in to comment.