@@ -144,7 +144,7 @@ discard block |
||
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 |
||
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 |
||
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 |