@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $methodInfo = $this->getMethodInfo(new \ReflectionMethod($className, $method)); |
149 | 149 | foreach ($instance as $methodParameters) { |
150 | 150 | $methodParams = $this->getParameters($methodInfo, $methodParameters); |
151 | - $callback = function ($params) use ($callback, $method, $methodParams) { |
|
151 | + $callback = function($params) use ($callback, $method, $methodParams) { |
|
152 | 152 | $object = $callback($params); |
153 | 153 | $object->$method(...$methodParams); |
154 | 154 | return $object; |
@@ -163,14 +163,14 @@ discard block |
||
163 | 163 | protected function generateCallback(string $className): callable |
164 | 164 | { |
165 | 165 | $constructor = (new \ReflectionClass($className))->getConstructor(); |
166 | - if (! $constructor || ! $constructor->getNumberOfParameters()) { |
|
167 | - return function () use ($className) { |
|
166 | + if (!$constructor || !$constructor->getNumberOfParameters()) { |
|
167 | + return function() use ($className) { |
|
168 | 168 | return new $className; |
169 | 169 | }; |
170 | 170 | } |
171 | 171 | $constructorInfo = $this->getMethodInfo($constructor); |
172 | 172 | $predefinedParams = $this->params[$className] ?? []; |
173 | - return function ($params) use ($className, $constructorInfo, $predefinedParams) { |
|
173 | + return function($params) use ($className, $constructorInfo, $predefinedParams) { |
|
174 | 174 | return new $className(...$this->getParameters($constructorInfo, $params + $predefinedParams)); |
175 | 175 | }; |
176 | 176 | } |