Passed
Push — type-resolver ( 5b5dc4...e8ec77 )
by Luis
11:11
created
src/Code/ClassDefinition.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function constructorParameters(): array
65 65
     {
66
-        $constructors = array_filter($this->methods, static fn (Method $method): bool => $method->isConstructor());
66
+        $constructors = array_filter($this->methods, static fn(Method $method): bool => $method->isConstructor());
67 67
         $constructor = reset($constructors);
68 68
 
69 69
         return $constructor === false ? [] : $constructor->parameters();
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         return \count(array_filter(
80 80
             $this->attributes,
81
-            static fn (Attribute $attribute): bool => $attribute->hasVisibility($modifier)
81
+            static fn(Attribute $attribute): bool => $attribute->hasVisibility($modifier)
82 82
         ));
83 83
     }
84 84
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     {
92 92
         return \count(array_filter(
93 93
             $this->attributes,
94
-            static fn (Attribute $attribute): bool =>
94
+            static fn(Attribute $attribute): bool =>
95 95
                 $attribute->hasTypeDeclaration() && $attribute->hasVisibility($modifier)
96 96
         ));
97 97
     }
@@ -149,6 +149,6 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function isAbstract(): bool
151 151
     {
152
-        return array_filter($this->methods(), static fn (Method $method): bool => $method->isAbstract()) !== [];
152
+        return array_filter($this->methods(), static fn(Method $method): bool => $method->isAbstract()) !== [];
153 153
     }
154 154
 }
Please login to merge, or discard this patch.