@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | function mixedToClosure($closure) |
| 72 | 72 | { |
| 73 | 73 | if (is_null($closure)) { |
| 74 | - return function ($value) { |
|
| 74 | + return function($value) { |
|
| 75 | 75 | return $value; |
| 76 | 76 | }; |
| 77 | 77 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | // A \Closure is always callable, but a callable is not always a \Closure. |
| 82 | 82 | // Checking within this if statement is a slight optimization, preventing an unnecessary function wrap |
| 83 | 83 | if (is_callable($closure)) { |
| 84 | - $closure = function () use($closure) { |
|
| 84 | + $closure = function() use($closure) { |
|
| 85 | 85 | return call_user_func_array($closure, func_get_args()); |
| 86 | 86 | }; |
| 87 | 87 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | { |
| 115 | 115 | if (is_string($strategy)) { |
| 116 | 116 | $keyParts = explode('.', $strategy); |
| 117 | - $strategy = function ($value) use ($keyParts) { |
|
| 117 | + $strategy = function($value) use ($keyParts) { |
|
| 118 | 118 | foreach ($keyParts as $keyPart) { |
| 119 | 119 | if (is_object($value)) { |
| 120 | 120 | // property_exists does not distinguish between public, protected, or private properties, hence we need to use reflection |