diff --git a/src/Application.php b/src/Application.php index 7099c97..dac27d9 100644 --- a/src/Application.php +++ b/src/Application.php @@ -24,7 +24,7 @@ class Application extends BaseApplication public function __construct() { - parent::__construct('PHP QA Analyzer', '0.1.0'); + parent::__construct('PHP QA Analyzer', '0.2.0'); $this->config = new Config(); } diff --git a/src/Command/AnalyzeCommand.php b/src/Command/AnalyzeCommand.php index ed46ae0..a0d022c 100644 --- a/src/Command/AnalyzeCommand.php +++ b/src/Command/AnalyzeCommand.php @@ -38,7 +38,7 @@ class AnalyzeCommand extends Command ]; /** - * + * {@inheritdoc} */ protected function configure() { @@ -239,15 +239,23 @@ private function analyzer(SymfonyStyle $io, $analyzer, $files, $config, $project $io->info($config->get('application.messages.'.$analyzer.'.info')); $processArguments = [ - 'php', - $this->directory.'bin/'.$analyzer + 'php', + $this->directory.'bin/'.$analyzer ]; if ($configFile) { $singleExecution = $config->get('application.analyzer.'.$analyzer.'.file.single-execution'); if ($singleExecution) { - $process = $this->executeProcess($io, $processArguments, $configFile, $prefixes, $postfixes, $arguments, $options); + $process = $this->executeProcess( + $io, + $processArguments, + $configFile, + $prefixes, + $postfixes, + $arguments, + $options + ); $success = $process->isSuccessful(); $files = []; } @@ -260,7 +268,15 @@ private function analyzer(SymfonyStyle $io, $analyzer, $files, $config, $project continue; } - $process = $this->executeProcess($io, $processArguments, $file, $prefixes, $postfixes, $arguments, $options); + $process = $this->executeProcess( + $io, + $processArguments, + $file, + $prefixes, + $postfixes, + $arguments, + $options + ); if ($success) { $success = $process->isSuccessful(); diff --git a/src/Command/InitCommand.php b/src/Command/InitCommand.php index 398cc29..54bc71c 100644 --- a/src/Command/InitCommand.php +++ b/src/Command/InitCommand.php @@ -52,7 +52,7 @@ protected function configure() null, InputOption::VALUE_REQUIRED, sprintf( - 'Project name to copy config from, must be (%s).', + 'Project name to copy config from, should be (%s).', implode(',', $this->projects) ) )