Completed
Push — master ( a34bf8...87f03a )
by Julián
01:25
created
src/ImmutabilityBehaviour.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     private function getClassPublicMethods(): array
145 145
     {
146 146
         return \array_filter(\array_map(
147
-            function (\ReflectionMethod $method): string {
147
+            function(\ReflectionMethod $method): string {
148 148
                 return !$method->isStatic() ? $method->getName() : '';
149 149
             },
150 150
             (new \ReflectionObject($this))->getMethods(\ReflectionMethod::IS_PUBLIC)
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         $allowedInterfaces = \array_unique(\array_merge($this->getAllowedInterfaces(), [ImmutabilityBehaviour::class]));
162 162
         $allowedMethods = \array_merge(
163 163
             ...\array_map(
164
-                function (string $interface): array {
164
+                function(string $interface): array {
165 165
                     return (new \ReflectionClass($interface))->getMethods(\ReflectionMethod::IS_PUBLIC);
166 166
                 },
167 167
                 $allowedInterfaces
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         );
170 170
 
171 171
         return \array_unique(\array_filter(\array_map(
172
-            function (\ReflectionMethod $method): string {
172
+            function(\ReflectionMethod $method): string {
173 173
                 return !$method->isStatic() ? $method->getName() : '';
174 174
             },
175 175
             $allowedMethods
Please login to merge, or discard this patch.