@@ -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 | |