@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | $methodInfo = $this->getMethodInfo(new \ReflectionMethod($class, $method)); |
| 177 | 177 | foreach ($instance as $methodParameters) { |
| 178 | 178 | $methodParams = $this->getParameters($methodInfo, $methodParameters); |
| 179 | - $callback = function ($params) use ($callback, $method, $methodParams) { |
|
| 179 | + $callback = function($params) use ($callback, $method, $methodParams) { |
|
| 180 | 180 | $object = $callback($params); |
| 181 | 181 | $object->$method(...$methodParams); |
| 182 | 182 | return $object; |
@@ -191,14 +191,14 @@ discard block |
||
| 191 | 191 | { |
| 192 | 192 | $constructor = (new \ReflectionClass($class))->getConstructor(); |
| 193 | 193 | if (!$constructor || !$constructor->getNumberOfParameters()) { |
| 194 | - return function () use ($class) { |
|
| 194 | + return function() use ($class) { |
|
| 195 | 195 | return new $class; |
| 196 | 196 | }; |
| 197 | 197 | } |
| 198 | 198 | $constructorInfo = $this->getMethodInfo($constructor); |
| 199 | 199 | $predefinedParams = $this->params[$class] ?? []; |
| 200 | 200 | |
| 201 | - return function ($params) use ($class, $constructorInfo, $predefinedParams) { |
|
| 201 | + return function($params) use ($class, $constructorInfo, $predefinedParams) { |
|
| 202 | 202 | return new $class(...$this->getParameters($constructorInfo, $params + $predefinedParams)); |
| 203 | 203 | }; |
| 204 | 204 | } |