@@ -68,7 +68,7 @@ |
||
68 | 68 | |
69 | 69 | public function onEngineEnd() |
70 | 70 | { |
71 | - while (! $this->isRowFull()) { |
|
71 | + while ( ! $this->isRowFull()) { |
|
72 | 72 | $this->output->write(' '); |
73 | 73 | ++$this->singleRowCounter; |
74 | 74 | } |
@@ -81,7 +81,7 @@ |
||
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() |
@@ -81,7 +81,7 @@ |
||
81 | 81 | |
82 | 82 | public function countTestResults(): int |
83 | 83 | { |
84 | - if (! $this->testResultFormat instanceof TestResultWithSymbolFormat) { |
|
84 | + if ( ! $this->testResultFormat instanceof TestResultWithSymbolFormat) { |
|
85 | 85 | return 0; |
86 | 86 | } |
87 | 87 |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | namespace Paraunit\Filter; |
6 | 6 | |
7 | -if (! class_exists('SebastianBergmann\FileIterator\Facade')) { |
|
7 | +if ( ! class_exists('SebastianBergmann\FileIterator\Facade')) { |
|
8 | 8 | \class_alias('\File_Iterator_Facade', 'SebastianBergmann\FileIterator\Facade'); |
9 | 9 | } |
10 | 10 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | { |
116 | 116 | $excludes = []; |
117 | 117 | foreach ($testSuiteNode->getElementsByTagName('exclude') as $excludeNode) { |
118 | - $excludes[] = (string) $excludeNode->nodeValue; |
|
118 | + $excludes[] = (string)$excludeNode->nodeValue; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | return $excludes; |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | private function addTestsFromDirectoryNodes(\DOMElement $testSuiteNode, array &$aggregatedFiles, array $excludes) |
130 | 130 | { |
131 | 131 | foreach ($testSuiteNode->getElementsByTagName('directory') as $directoryNode) { |
132 | - $directory = (string) $directoryNode->nodeValue; |
|
132 | + $directory = (string)$directoryNode->nodeValue; |
|
133 | 133 | |
134 | 134 | $files = $this->fileIteratorFacade->getFilesAsArray( |
135 | 135 | $this->relativePath . $directory, |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | private function addTestsFromFileNodes(\DOMElement $testSuiteNode, array &$aggregatedFiles) |
152 | 152 | { |
153 | 153 | foreach ($testSuiteNode->getElementsByTagName('file') as $fileNode) { |
154 | - $fileName = $this->relativePath . (string) $fileNode->nodeValue; |
|
154 | + $fileName = $this->relativePath . (string)$fileNode->nodeValue; |
|
155 | 155 | $this->addFileToAggregateArray($aggregatedFiles, $fileName); |
156 | 156 | } |
157 | 157 | } |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | private function filterByString(array $aggregatedFiles, $stringFilter): array |
200 | 200 | { |
201 | 201 | if ($stringFilter !== null) { |
202 | - $aggregatedFiles = array_filter($aggregatedFiles, function ($value) use ($stringFilter) { |
|
202 | + $aggregatedFiles = array_filter($aggregatedFiles, function($value) use ($stringFilter) { |
|
203 | 203 | return stripos($value, $stringFilter) !== false; |
204 | 204 | }); |
205 | 205 | } |
@@ -169,7 +169,7 @@ |
||
169 | 169 | |
170 | 170 | private function configureServices(ContainerBuilder $container) |
171 | 171 | { |
172 | - if (! class_exists('SebastianBergmann\FileIterator\Facade')) { |
|
172 | + if ( ! class_exists('SebastianBergmann\FileIterator\Facade')) { |
|
173 | 173 | \class_alias('\File_Iterator_Facade', 'SebastianBergmann\FileIterator\Facade'); |
174 | 174 | } |
175 | 175 |
@@ -132,7 +132,7 @@ |
||
132 | 132 | */ |
133 | 133 | private function setOptionValue(PHPUnitOption $option, $cliOption): bool |
134 | 134 | { |
135 | - if (! $cliOption) { |
|
135 | + if ( ! $cliOption) { |
|
136 | 136 | return false; |
137 | 137 | } |
138 | 138 | if ($option->hasValue()) { |