@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Printer; |
| 5 | 5 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | private function printFailuresOutput(TestResultContainer $testResultContainer) |
| 30 | 30 | { |
| 31 | - if (! $testResultContainer->getTestResultFormat()->shouldPrintTestOutput()) { |
|
| 31 | + if ( ! $testResultContainer->getTestResultFormat()->shouldPrintTestOutput()) { |
|
| 32 | 32 | return; |
| 33 | 33 | } |
| 34 | 34 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Printer; |
| 5 | 5 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | private function printFileRecap(TestResultContainerInterface $testResultContainer) |
| 25 | 25 | { |
| 26 | - if (! $testResultContainer->getTestResultFormat()->shouldPrintFilesRecap()) { |
|
| 26 | + if ( ! $testResultContainer->getTestResultFormat()->shouldPrintFilesRecap()) { |
|
| 27 | 27 | return; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | public function execute(AbstractParaunitProcess $process) |
| 37 | 37 | { |
| 38 | - if (! $this->isFree()) { |
|
| 38 | + if ( ! $this->isFree()) { |
|
| 39 | 39 | throw new \RuntimeException('This pipeline is not free'); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Configuration; |
| 5 | 5 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $configFile .= DIRECTORY_SEPARATOR . self::DEFAULT_FILE_NAME; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - if (! is_file($configFile) || ! is_readable($configFile)) { |
|
| 79 | + if ( ! is_file($configFile) || ! is_readable($configFile)) { |
|
| 80 | 80 | throw new \InvalidArgumentException('Config file ' . $configFile . ' does not exist or is not readable'); |
| 81 | 81 | } |
| 82 | 82 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Process; |
| 5 | 5 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public function getOptions(PHPUnitConfig $config): array |
| 59 | 59 | { |
| 60 | - if (! $this->phpDbgBinFile->isAvailable()) { |
|
| 60 | + if ( ! $this->phpDbgBinFile->isAvailable()) { |
|
| 61 | 61 | return parent::getOptions($config); |
| 62 | 62 | } |
| 63 | 63 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Parser\JSON; |
| 5 | 5 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | $logFilename = $this->getLogFilename(); |
| 46 | 46 | |
| 47 | 47 | $logDir = $this->getLogDirectory(); |
| 48 | - if (! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) { |
|
| 48 | + if ( ! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) { |
|
| 49 | 49 | throw new \RuntimeException('Cannot create folder for JSON logs'); |
| 50 | 50 | } |
| 51 | 51 | |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | */ |
| 255 | 255 | public function writeArray($buffer) |
| 256 | 256 | { |
| 257 | - array_walk_recursive($buffer, function (&$input) { |
|
| 257 | + array_walk_recursive($buffer, function(&$input) { |
|
| 258 | 258 | if (is_string($input)) { |
| 259 | 259 | $input = $this->convertToUtf8($input); |
| 260 | 260 | } |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | |
| 302 | 302 | private function convertToUtf8($string): string |
| 303 | 303 | { |
| 304 | - if (! $this->isUtf8($string)) { |
|
| 304 | + if ( ! $this->isUtf8($string)) { |
|
| 305 | 305 | if (\function_exists('mb_convert_encoding')) { |
| 306 | 306 | return \mb_convert_encoding($string, 'UTF-8'); |
| 307 | 307 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | public function isEmpty(): bool |
| 55 | 55 | { |
| 56 | 56 | foreach ($this->pipelines as $pipeline) { |
| 57 | - if (! $pipeline->isFree()) { |
|
| 57 | + if ( ! $pipeline->isFree()) { |
|
| 58 | 58 | return false; |
| 59 | 59 | } |
| 60 | 60 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Runner; |
| 5 | 5 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $this->pushToPipeline(); |
| 79 | 79 | usleep(100); |
| 80 | 80 | $this->pipelineCollection->triggerProcessTermination(); |
| 81 | - } while (! $this->pipelineCollection->isEmpty() || ! $this->queuedProcesses->isEmpty()); |
|
| 81 | + } while ( ! $this->pipelineCollection->isEmpty() || ! $this->queuedProcesses->isEmpty()); |
|
| 82 | 82 | |
| 83 | 83 | $this->eventDispatcher->dispatch(EngineEvent::END); |
| 84 | 84 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | public function pushToPipeline() |
| 116 | 116 | { |
| 117 | - while (! $this->queuedProcesses->isEmpty() && $this->pipelineCollection->hasEmptySlots()) { |
|
| 117 | + while ( ! $this->queuedProcesses->isEmpty() && $this->pipelineCollection->hasEmptySlots()) { |
|
| 118 | 118 | $this->pipelineCollection->push($this->queuedProcesses->dequeue()); |
| 119 | 119 | } |
| 120 | 120 | } |