Completed
Branch master (94d55b)
by Julián
03:15
created
Category
src/ImmutabilityBehaviour.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     final protected function getClassPublicMethods(): array
119 119
     {
120 120
         return \array_filter(\array_map(
121
-            function (\ReflectionMethod $method): string {
121
+            function(\ReflectionMethod $method): string {
122 122
                 return !$method->isStatic() ? $method->getName() : '';
123 123
             },
124 124
             (new \ReflectionObject($this))->getMethods(\ReflectionMethod::IS_PUBLIC)
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $allowedInterfaces = \array_unique(\array_merge($this->getAllowedInterfaces(), [ImmutabilityBehaviour::class]));
136 136
         $allowedMethods = \array_merge(
137 137
             ...\array_map(
138
-                function (string $interface): array {
138
+                function(string $interface): array {
139 139
                     return (new \ReflectionClass($interface))->getMethods(\ReflectionMethod::IS_PUBLIC);
140 140
                 },
141 141
                 $allowedInterfaces
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         );
144 144
 
145 145
         return \array_unique(\array_filter(\array_map(
146
-            function (\ReflectionMethod $method): string {
146
+            function(\ReflectionMethod $method): string {
147 147
                 return !$method->isStatic() ? $method->getName() : '';
148 148
             },
149 149
             $allowedMethods
Please login to merge, or discard this patch.