Passed
Push — master ( 2033b4...aa39f3 )
by Jakub
01:52
created
src/Job.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     /** @var callable Task */
22 22
     protected $callback;
23 23
     public readonly array $params;
24
-    protected bool|string $skip;
24
+    protected bool | string $skip;
25 25
     protected JobResult $result = JobResult::PASSED;
26 26
     protected string $output = "";
27 27
     /** @var callable[] */
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         string $name,
32 32
         callable $callback,
33 33
         array $params = [],
34
-        bool|string $skip = false,
34
+        bool | string $skip = false,
35 35
         array $onAfterExecute = []
36 36
     ) {
37 37
         $this->name = $name;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         return $this->callback;
47 47
     }
48 48
 
49
-    public function getSkip(): bool|string
49
+    public function getSkip(): bool | string
50 50
     {
51 51
         return $this->skip;
52 52
     }
Please login to merge, or discard this patch.
tests/TestCaseTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 #[TestSuite("TestCase")]
17 17
 final class TestCaseTest extends TestCase
18 18
 {
19
-    private int|bool $one = false;
19
+    private int | bool $one = false;
20 20
 
21 21
     public function setUp(): void
22 22
     {
Please login to merge, or discard this patch.
src/DataProvider.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,15 +41,15 @@
 block discarded – undo
41 41
             try {
42 42
                 $reflection = new ReflectionMethod($class, $dataProvider);
43 43
                 if (!$reflection->isPublic()) {
44
-                    throw new InvalidDataProviderException("Method $className::$dataProvider is not public.");
44
+                    throw new InvalidDataProviderException("method $className::$dataProvider is not public.");
45 45
                 }
46 46
                 $result = call_user_func([$class, $dataProvider]); // @phpstan-ignore argument.type
47 47
                 if (!is_array($result)) {
48
-                    throw new InvalidDataProviderException("Method $className::$dataProvider has to return an array.");
48
+                    throw new InvalidDataProviderException("method $className::$dataProvider has to return an array.");
49 49
                 }
50 50
                 return $result;
51 51
             } catch (\ReflectionException $e) {
52
-                throw new InvalidDataProviderException("Method $className::$dataProvider does not exist.", 0, $e);
52
+                throw new InvalidDataProviderException("method $className::$dataProvider does not exist.", 0, $e);
53 53
             }
54 54
         }
55 55
         return [];
Please login to merge, or discard this patch.
src/CodeCoverage/Formatters/CoberturaFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
         $this->baseFileName = $baseFileName;
162 162
     }
163 163
 
164
-    private function getElementLines(\ReflectionClass|\ReflectionFunctionAbstract $reflection, array $data): array
164
+    private function getElementLines(\ReflectionClass | \ReflectionFunctionAbstract $reflection, array $data): array
165 165
     {
166 166
         return array_filter($data, function (int $line) use ($reflection) {
167 167
             return ($line >= $reflection->getStartLine() && $line <= $reflection->getEndLine());
Please login to merge, or discard this patch.
src/OutputFormatters/Console.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,8 @@
 block discarded – undo
137 137
         foreach ($files as $name => $file) {
138 138
             try {
139 139
                 FileSystem::delete($name);
140
-            } catch (IOException) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement
140
+            } catch (IOException) {
141
+// phpcs:ignore Generic.CodeAnalysis.EmptyStatement
141 142
             }
142 143
         }
143 144
     }
Please login to merge, or discard this patch.