Passed
Push — master ( 137960...4d87d9 )
by Sys
11:11
created
src/Commands/CreateStubsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     protected static $defaultName = 'app:create-stubs';
22 22
 
23
-    protected function validateData(string|false $data): bool
23
+    protected function validateData(string | false $data): bool
24 24
     {
25 25
         return false !== $data and !empty($data);
26 26
     }
Please login to merge, or discard this patch.
src/Common/SchemaExtractor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         $sibling = $node;
57 57
         while (!str_starts_with($tag, 'h')) {
58 58
             $sibling = $sibling->nextSibling();
59
-            $tag = $sibling?->tag?->name();
59
+            $tag = $sibling ? ->tag ? ->name();
60 60
             if (empty($node->text()) or empty($tag) or $tag == 'text') {
61 61
                 continue;
62 62
             } elseif ($tag == 'p') {
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
         $phrases = explode('.', $description);
254 254
         $phrases = array_filter(
255 255
             $phrases,
256
-            function ($phrase) {
256
+            function($phrase) {
257 257
                 return (false !== stripos($phrase, 'returns') or false !== stripos($phrase, 'is returned'));
258 258
             }
259 259
         );
Please login to merge, or discard this patch.
src/Common/StubCreator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@
 block discarded – undo
255 255
             $fields = $method['fields'];
256 256
             usort(
257 257
                 $fields,
258
-                function ($a, $b) {
258
+                function($a, $b) {
259 259
                     return $a['optional'] - $b['optional'];
260 260
                 }
261 261
             );
Please login to merge, or discard this patch.