Skip to content

Commit

Permalink
AnalyserRunner::runAnalyser() - $allowParallel
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 20, 2020
1 parent 4f152b2 commit 2dc11d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/AnalyseApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private function runAnalyser(
$postFileCallback = null;
}

$analyserResult = $this->analyserRunner->runAnalyser($files, $allAnalysedFiles, $preFileCallback, $postFileCallback, $debug, $projectConfigFile, $input);
$analyserResult = $this->analyserRunner->runAnalyser($files, $allAnalysedFiles, $preFileCallback, $postFileCallback, $debug, true, $projectConfigFile, $input);

if (isset($progressStarted) && $progressStarted) {
$errorOutput->getStyle()->progressFinish();
Expand Down
3 changes: 3 additions & 0 deletions src/Command/AnalyserRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function __construct(
* @param \Closure|null $preFileCallback
* @param \Closure|null $postFileCallback
* @param bool $debug
* @param bool $allowParallel
* @param string|null $projectConfigFile
* @param InputInterface $input
* @return AnalyserResult
Expand All @@ -50,6 +51,7 @@ public function runAnalyser(
?\Closure $preFileCallback,
?\Closure $postFileCallback,
bool $debug,
bool $allowParallel,
?string $projectConfigFile,
InputInterface $input
): AnalyserResult
Expand All @@ -67,6 +69,7 @@ public function runAnalyser(

if (
!$debug
&& $allowParallel
&& $mainScript !== null
&& $schedule->getNumberOfProcesses() > 1
) {
Expand Down

0 comments on commit 2dc11d6

Please sign in to comment.