Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
26 changes: 21 additions & 5 deletions src/Command/AnalyzeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AnalyzeCommand extends Command
];

/**
*
* {@inheritdoc}
*/
protected function configure()
{
Expand Down Expand Up @@ -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 = [];
}
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/Command/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
)
Expand Down