@@ -37,7 +37,7 @@ |
||
| 37 | 37 | ); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - if (! property_exists($log, 'message')) { |
|
| 40 | + if ( ! property_exists($log, 'message')) { |
|
| 41 | 41 | return new MuteTestResult(); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | { |
| 40 | 40 | $format = $singleResult->getTestResultFormat(); |
| 41 | 41 | |
| 42 | - if (! $format instanceof TestResultWithSymbolFormat) { |
|
| 42 | + if ( ! $format instanceof TestResultWithSymbolFormat) { |
|
| 43 | 43 | return ''; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -83,11 +83,11 @@ |
||
| 83 | 83 | return; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | - if (! property_exists($logItem, 'suite')) { |
|
| 86 | + if ( ! property_exists($logItem, 'suite')) { |
|
| 87 | 87 | return; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - if (! property_exists($logItem, 'test')) { |
|
| 90 | + if ( ! property_exists($logItem, 'test')) { |
|
| 91 | 91 | return; |
| 92 | 92 | } |
| 93 | 93 | |
@@ -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 | |
@@ -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 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | { |
| 111 | 111 | $excludes = []; |
| 112 | 112 | foreach ($testSuiteNode->getElementsByTagName('exclude') as $excludeNode) { |
| 113 | - $excludes[] = (string) $excludeNode->nodeValue; |
|
| 113 | + $excludes[] = (string)$excludeNode->nodeValue; |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | return $excludes; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | private function addTestsFromDirectoryNodes(\DOMElement $testSuiteNode, array &$aggregatedFiles, array $excludes) |
| 125 | 125 | { |
| 126 | 126 | foreach ($testSuiteNode->getElementsByTagName('directory') as $directoryNode) { |
| 127 | - $directory = (string) $directoryNode->nodeValue; |
|
| 127 | + $directory = (string)$directoryNode->nodeValue; |
|
| 128 | 128 | |
| 129 | 129 | $files = $this->fileIteratorFacade->getFilesAsArray( |
| 130 | 130 | $this->relativePath . $directory, |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | private function addTestsFromFileNodes(\DOMElement $testSuiteNode, array &$aggregatedFiles) |
| 147 | 147 | { |
| 148 | 148 | foreach ($testSuiteNode->getElementsByTagName('file') as $fileNode) { |
| 149 | - $fileName = $this->relativePath . (string) $fileNode->nodeValue; |
|
| 149 | + $fileName = $this->relativePath . (string)$fileNode->nodeValue; |
|
| 150 | 150 | $this->addFileToAggregateArray($aggregatedFiles, $fileName); |
| 151 | 151 | } |
| 152 | 152 | } |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | private function filterByString(array $aggregatedFiles, $stringFilter): array |
| 195 | 195 | { |
| 196 | 196 | if ($stringFilter !== null) { |
| 197 | - $aggregatedFiles = array_filter($aggregatedFiles, function ($value) use ($stringFilter) { |
|
| 197 | + $aggregatedFiles = array_filter($aggregatedFiles, function($value) use ($stringFilter) { |
|
| 198 | 198 | return stripos($value, $stringFilter) !== false; |
| 199 | 199 | }); |
| 200 | 200 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | public function getOptions(PHPUnitConfig $config): array |
| 60 | 60 | { |
| 61 | - if (! $this->phpDbgBinFile->isAvailable()) { |
|
| 61 | + if ( ! $this->phpDbgBinFile->isAvailable()) { |
|
| 62 | 62 | return parent::getOptions($config); |
| 63 | 63 | } |
| 64 | 64 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | if ($input->getOption($optionName)) { |
| 64 | 64 | $this->addProcessor($coverageResult, $processorClass, [ |
| 65 | 65 | $this->createOutputFileDefinition($input, $optionName), |
| 66 | - (bool) $input->getOption('ansi'), |
|
| 66 | + (bool)$input->getOption('ansi'), |
|
| 67 | 67 | ]); |
| 68 | 68 | } |
| 69 | 69 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | if ($this->optionIsEnabled($input, $optionName)) { |
| 79 | 79 | $this->addProcessor($coverageResult, $processorClass, [ |
| 80 | 80 | new Reference(OutputInterface::class), |
| 81 | - (bool) $input->getOption('ansi'), |
|
| 81 | + (bool)$input->getOption('ansi'), |
|
| 82 | 82 | $this->createOutputFileDefinition($input, $optionName), |
| 83 | 83 | ]); |
| 84 | 84 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | private function getOptionName(string $processorClass): string |
| 116 | 116 | { |
| 117 | - if (! \in_array(CoverageProcessorInterface::class, class_implements($processorClass), true)) { |
|
| 117 | + if ( ! \in_array(CoverageProcessorInterface::class, class_implements($processorClass), true)) { |
|
| 118 | 118 | throw new \InvalidArgumentException('Expecting FQCN of class implementing ' . CoverageProcessorInterface::class . ', got ' . $processorClass); |
| 119 | 119 | } |
| 120 | 120 | |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | |
| 98 | 98 | private function createPublicAliases(ContainerBuilder $containerBuilder) |
| 99 | 99 | { |
| 100 | - if (! $this->createPublicServiceAliases) { |
|
| 100 | + if ( ! $this->createPublicServiceAliases) { |
|
| 101 | 101 | return; |
| 102 | 102 | } |
| 103 | 103 | |