From 2dc11d6f9b553dd75f95029ae2fa339545178a34 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sun, 20 Sep 2020 15:27:50 +0200 Subject: [PATCH] AnalyserRunner::runAnalyser() - $allowParallel --- src/Command/AnalyseApplication.php | 2 +- src/Command/AnalyserRunner.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Command/AnalyseApplication.php b/src/Command/AnalyseApplication.php index ab5cb4cf0e..9a3f36dbd2 100644 --- a/src/Command/AnalyseApplication.php +++ b/src/Command/AnalyseApplication.php @@ -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(); diff --git a/src/Command/AnalyserRunner.php b/src/Command/AnalyserRunner.php index 2d2538e56d..0116129532 100644 --- a/src/Command/AnalyserRunner.php +++ b/src/Command/AnalyserRunner.php @@ -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 @@ -50,6 +51,7 @@ public function runAnalyser( ?\Closure $preFileCallback, ?\Closure $postFileCallback, bool $debug, + bool $allowParallel, ?string $projectConfigFile, InputInterface $input ): AnalyserResult @@ -67,6 +69,7 @@ public function runAnalyser( if ( !$debug + && $allowParallel && $mainScript !== null && $schedule->getNumberOfProcesses() > 1 ) {