@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | { |
| 76 | 76 | $di = $this->di; |
| 77 | 77 | |
| 78 | - return $this->recursiveArrayMap(static function ($param) use ($di) { |
|
| 78 | + return $this->recursiveArrayMap(static function($param) use ($di) { |
|
| 79 | 79 | if ($di->handler()) { |
| 80 | 80 | return $di->handler()->handle($param); |
| 81 | 81 | } |
@@ -94,8 +94,7 @@ discard block |
||
| 94 | 94 | $output = []; |
| 95 | 95 | foreach ($input as $key => $data) { |
| 96 | 96 | $output[$key] = (is_array($data)) ? |
| 97 | - $this->recursiveArrayMap($callback, $data) : |
|
| 98 | - $callback($data); |
|
| 97 | + $this->recursiveArrayMap($callback, $data) : $callback($data); |
|
| 99 | 98 | } |
| 100 | 99 | |
| 101 | 100 | return $output; |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | 'stringValue' => 'Lorem ipsum dolor sit amet', |
| 5 | 5 | 'numericValue' => 55, |
| 6 | 6 | 'chainValue' => 'stringValue', |
| 7 | - 'closureValue' => static function () { |
|
| 7 | + 'closureValue' => static function() { |
|
| 8 | 8 | // each call returns the same instance |
| 9 | 9 | return new B('String Argument'); |
| 10 | 10 | }, |