@@ -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 | |
@@ -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 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | private function pushToPipeline(): bool |
| 105 | 105 | { |
| 106 | 106 | $somethingHasBeenPushed = false; |
| 107 | - while (! $this->queuedProcesses->isEmpty() && $this->pipelineCollection->hasEmptySlots()) { |
|
| 107 | + while ( ! $this->queuedProcesses->isEmpty() && $this->pipelineCollection->hasEmptySlots()) { |
|
| 108 | 108 | $this->pipelineCollection->push($this->queuedProcesses->dequeue()); |
| 109 | 109 | $somethingHasBeenPushed = true; |
| 110 | 110 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | $isRunning = false; |
| 57 | 57 | |
| 58 | 58 | foreach ($this->pipelines as $pipeline) { |
| 59 | - if (! $pipeline->isTerminated() || ! $pipeline->isFree()) { |
|
| 59 | + if ( ! $pipeline->isTerminated() || ! $pipeline->isFree()) { |
|
| 60 | 60 | $isRunning = true; |
| 61 | 61 | } |
| 62 | 62 | } |
@@ -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 | } |