@@ -23,13 +23,13 @@ |
||
23 | 23 | class CoverageCheckStyle extends SymfonyStyle |
24 | 24 | { |
25 | 25 | #[\Override] |
26 | - public function error(array|string $message, bool $onlyPercentage = false): void |
|
26 | + public function error(array | string $message, bool $onlyPercentage = false): void |
|
27 | 27 | { |
28 | 28 | $this->block($message, ($onlyPercentage ? null : 'ERROR'), 'fg=white;bg=red', ' ', true); |
29 | 29 | } |
30 | 30 | |
31 | 31 | #[\Override] |
32 | - public function success(array|string $message, bool $onlyPercentage = false): void |
|
32 | + public function success(array | string $message, bool $onlyPercentage = false): void |
|
33 | 33 | { |
34 | 34 | $this->block($message, ($onlyPercentage ? null : 'OK'), 'fg=black;bg=green', ' ', true); |
35 | 35 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * @see https://confluence.atlassian.com/pages/viewpage.action?pageId=79986990 |
122 | 122 | * @see https://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/ |
123 | 123 | */ |
124 | - public function process(): false|float |
|
124 | + public function process(): false | float |
|
125 | 125 | { |
126 | 126 | $rawMetrics = $this->loadMetrics() ?? false; |
127 | 127 | |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | * totalCoverage: float|int |
169 | 169 | * } |
170 | 170 | */ |
171 | - public function processByFile(): array|false |
|
171 | + public function processByFile(): array | false |
|
172 | 172 | { |
173 | 173 | $fileMetrics = []; |
174 | 174 | $totalElementsCovered = 0; |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | * |
275 | 275 | * @return null|array<SimpleXMLElement>|false |
276 | 276 | */ |
277 | - protected function loadMetrics(string $xpath = self::XPATH_METRICS): null|array|false |
|
277 | + protected function loadMetrics(string $xpath = self::XPATH_METRICS): null | array | false |
|
278 | 278 | { |
279 | 279 | $cloverData = file_get_contents($this->cloverFile); |
280 | 280 |