Passed
Branch master (e44da5)
by Eric
02:16
created
src/Style/CoverageCheckStyle.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@
 block discarded – undo
24 24
 final class CoverageCheckStyle extends SymfonyStyle
25 25
 {
26 26
     #[Override]
27
-    public function error(array|string $message, bool $onlyPercentage = false): void
27
+    public function error(array | string $message, bool $onlyPercentage = false): void
28 28
     {
29 29
         $this->block($message, ($onlyPercentage ? null : 'ERROR'), 'fg=white;bg=red', ' ', true);
30 30
     }
31 31
 
32 32
     #[Override]
33
-    public function success(array|string $message, bool $onlyPercentage = false): void
33
+    public function success(array | string $message, bool $onlyPercentage = false): void
34 34
     {
35 35
         $this->block($message, ($onlyPercentage ? null : 'OK'), 'fg=black;bg=green', ' ', true);
36 36
     }
Please login to merge, or discard this patch.
src/CoverageCheck.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
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
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      *     totalCoverage: float|int
202 202
      * }
203 203
      */
204
-    public function processByFile(): array|false
204
+    public function processByFile(): array | false
205 205
     {
206 206
         $fileMetrics          = [];
207 207
         $totalElementsCovered = 0;
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
      *
308 308
      * @return null|array<SimpleXMLElement>|false
309 309
      */
310
-    private function loadMetrics(string $xpath = self::XPATH_METRICS): null|array|false
310
+    private function loadMetrics(string $xpath = self::XPATH_METRICS): null | array | false
311 311
     {
312 312
         $cloverData = file_get_contents($this->cloverFile);
313 313
 
Please login to merge, or discard this patch.