Skip to content

Commit

Permalink
Tag release 0.2.0 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas authored Dec 31, 2016
1 parent bc370a8 commit 2b1f6b2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
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

0 comments on commit 2b1f6b2

Please sign in to comment.