@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Paraunit\File; |
| 6 | 6 | |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | return; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - if (! mkdir($path) && ! is_dir($path)) { |
|
| 83 | + if ( ! mkdir($path) && ! is_dir($path)) { |
|
| 84 | 84 | throw new \RuntimeException('Unable to create temporary directory ' . $path); |
| 85 | 85 | } |
| 86 | 86 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Paraunit\Configuration; |
| 6 | 6 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function getPhpDbgBin(): string |
| 31 | 31 | { |
| 32 | - if (! $this->isAvailable()) { |
|
| 32 | + if ( ! $this->isAvailable()) { |
|
| 33 | 33 | throw new \RuntimeException('PHPDbg is not available!'); |
| 34 | 34 | } |
| 35 | 35 | |
@@ -52,6 +52,6 @@ discard block |
||
| 52 | 52 | $locator = new Process('command -v phpdbg'); |
| 53 | 53 | $locator->run(); |
| 54 | 54 | |
| 55 | - return (string) preg_replace('/\s/', '', $locator->getOutput()); |
|
| 55 | + return (string)preg_replace('/\s/', '', $locator->getOutput()); |
|
| 56 | 56 | } |
| 57 | 57 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Paraunit\Configuration; |
| 6 | 6 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | if ($input->getOption('text-to-console')) { |
| 60 | 60 | /** @var OutputInterface $output */ |
| 61 | 61 | $output = $container->get(OutputInterface::class); |
| 62 | - $textToConsole = new TextToConsole($output, (bool) $input->getOption('ansi')); |
|
| 62 | + $textToConsole = new TextToConsole($output, (bool)$input->getOption('ansi')); |
|
| 63 | 63 | $coverageResult->addCoverageProcessor($textToConsole); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Paraunit\Filter; |
| 6 | 6 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $excludes = []; |
| 108 | 108 | foreach ($testSuiteNode->getElementsByTagName('exclude') as $excludeNode) { |
| 109 | - $excludes[] = (string) $excludeNode->nodeValue; |
|
| 109 | + $excludes[] = (string)$excludeNode->nodeValue; |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | return $excludes; |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | private function addTestsFromDirectoryNodes(\DOMElement $testSuiteNode, array &$aggregatedFiles, array $excludes) |
| 121 | 121 | { |
| 122 | 122 | foreach ($testSuiteNode->getElementsByTagName('directory') as $directoryNode) { |
| 123 | - $directory = (string) $directoryNode->nodeValue; |
|
| 123 | + $directory = (string)$directoryNode->nodeValue; |
|
| 124 | 124 | |
| 125 | 125 | $files = $this->fileIteratorFacade->getFilesAsArray( |
| 126 | 126 | $this->relativePath . $directory, |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | private function addTestsFromFileNodes(\DOMElement $testSuiteNode, array &$aggregatedFiles) |
| 143 | 143 | { |
| 144 | 144 | foreach ($testSuiteNode->getElementsByTagName('file') as $fileNode) { |
| 145 | - $fileName = $this->relativePath . (string) $fileNode->nodeValue; |
|
| 145 | + $fileName = $this->relativePath . (string)$fileNode->nodeValue; |
|
| 146 | 146 | $this->addFileToAggregateArray($aggregatedFiles, $fileName); |
| 147 | 147 | } |
| 148 | 148 | } |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | private function filterByString(array $aggregatedFiles, $stringFilter): array |
| 191 | 191 | { |
| 192 | 192 | if ($stringFilter !== null) { |
| 193 | - $aggregatedFiles = array_filter($aggregatedFiles, function ($value) use ($stringFilter) { |
|
| 193 | + $aggregatedFiles = array_filter($aggregatedFiles, function($value) use ($stringFilter) { |
|
| 194 | 194 | return stripos($value, $stringFilter) !== false; |
| 195 | 195 | }); |
| 196 | 196 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Paraunit\Printer; |
| 6 | 6 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | if ($testResult instanceof StackTraceInterface) { |
| 67 | 67 | foreach ($testResult->getTrace() as $traceStep) { |
| 68 | - $this->getOutput()->writeln((string) $traceStep); |
|
| 68 | + $this->getOutput()->writeln((string)$traceStep); |
|
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Paraunit\Printer; |
| 6 | 6 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | { |
| 82 | 82 | $this->getOutput()->writeln(''); |
| 83 | 83 | $this->getOutput()->writeln(''); |
| 84 | - $this->getOutput()->writeln('Execution time -- ' . gmdate('H:i:s', (int) ($stopEvent->getDuration() / 1000))); |
|
| 84 | + $this->getOutput()->writeln('Execution time -- ' . gmdate('H:i:s', (int)($stopEvent->getDuration() / 1000))); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | private function printTestCounters() |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Paraunit\Runner; |
| 6 | 6 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | public function isEmpty(): bool |
| 57 | 57 | { |
| 58 | 58 | foreach ($this->pipelines as $pipeline) { |
| 59 | - if (! $pipeline->isFree()) { |
|
| 59 | + if ( ! $pipeline->isFree()) { |
|
| 60 | 60 | return false; |
| 61 | 61 | } |
| 62 | 62 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Paraunit\Runner; |
| 6 | 6 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | public function execute(AbstractParaunitProcess $process) |
| 39 | 39 | { |
| 40 | - if (! $this->isFree()) { |
|
| 40 | + if ( ! $this->isFree()) { |
|
| 41 | 41 | throw new \RuntimeException('This pipeline is not free'); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Paraunit\Runner; |
| 6 | 6 | |