@@ -34,13 +34,13 @@ |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | #[Override] |
37 | - public function error(array|string $message, bool $onlyPercentage = false): void |
|
37 | + public function error(array | string $message, bool $onlyPercentage = false): void |
|
38 | 38 | { |
39 | 39 | $this->block($message, ($onlyPercentage ? null : 'ERROR'), 'fg=white;bg=red', ' ', true); |
40 | 40 | } |
41 | 41 | |
42 | 42 | #[Override] |
43 | - public function success(array|string $message, bool $onlyPercentage = false): void |
|
43 | + public function success(array | string $message, bool $onlyPercentage = false): void |
|
44 | 44 | { |
45 | 45 | $this->block($message, ($onlyPercentage ? null : 'OK'), 'fg=black;bg=green', ' ', true); |
46 | 46 | } |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * @see https://confluence.atlassian.com/pages/viewpage.action?pageId=79986990 |
156 | 156 | * @see https://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/ |
157 | 157 | */ |
158 | - public function process(): false|float |
|
158 | + public function process(): false | float |
|
159 | 159 | { |
160 | 160 | $rawMetrics = $this->loadMetrics() ?? false; |
161 | 161 | |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | * totalCoverage: float|int |
203 | 203 | * }|false |
204 | 204 | */ |
205 | - public function processByFile(): array|false |
|
205 | + public function processByFile(): array | false |
|
206 | 206 | { |
207 | 207 | $fileMetrics = []; |
208 | 208 | $totalElementsCovered = 0; |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | * |
316 | 316 | * @return null|array<SimpleXMLElement>|false |
317 | 317 | */ |
318 | - private function loadMetrics(string $xpath = self::XPATH_METRICS): null|array|false |
|
318 | + private function loadMetrics(string $xpath = self::XPATH_METRICS): null | array | false |
|
319 | 319 | { |
320 | 320 | $cloverData = file_get_contents($this->cloverFile); |
321 | 321 |