Passed
Push — master ( 8b3666...2a1a62 )
by Jakub
12:17
created
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/Job.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     /** @var callable Task */
25 25
     private $callback;
26 26
     public readonly array $params;
27
-    private bool|string $skip;
27
+    private bool | string $skip;
28 28
     private JobResult $result = JobResult::PASSED;
29 29
     private string $output = "";
30 30
     /** @var int Total elapsed time in milliseconds */
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         string $name,
37 37
         callable $callback,
38 38
         array $params = [],
39
-        bool|string $skip = false,
39
+        bool | string $skip = false,
40 40
         array $onAfterExecute = []
41 41
     ) {
42 42
         $this->name = $name;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         return $this->callback;
52 52
     }
53 53
 
54
-    public function getSkip(): bool|string
54
+    public function getSkip(): bool | string
55 55
     {
56 56
         return $this->skip;
57 57
     }
Please login to merge, or discard this patch.
src/TestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @internal
103 103
      */
104
-    public function getSuiteName(string|object|null $class = null): string
104
+    public function getSuiteName(string | object | null $class = null): string
105 105
     {
106 106
         $class = $class ?? static::class;
107 107
         $annotation = $this->annotationsReader->getAnnotation(static::ANNOTATION_TEST_SUITE, $class);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     /**
115 115
      * Get name for a job
116 116
      */
117
-    protected function getJobName(string|object $class, string $method): string
117
+    protected function getJobName(string | object $class, string $method): string
118 118
     {
119 119
         $annotation = $this->annotationsReader->getAnnotation(static::ANNOTATION_TEST, $class, $method);
120 120
         if ($annotation !== null) {
Please login to merge, or discard this patch.
src/ResultsFormatters/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.