Passed
Push — master ( f47f7d...94c1e3 )
by
unknown
37s
created
src/Zicht/Itertools/conversions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 function mixed_to_closure($closure)
70 70
 {
71 71
     if (is_null($closure)) {
72
-        return function ($value) {
72
+        return function($value) {
73 73
             return $value;
74 74
         };
75 75
     }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         // A \Closure is always callable, but a callable is not always a \Closure.
80 80
         // Checking within this if statement is a slight optimization, preventing an unnecessary function wrap
81 81
         if (is_callable($closure)) {
82
-            $closure = function () use ($closure) {
82
+            $closure = function() use ($closure) {
83 83
                 return call_user_func_array($closure, func_get_args());
84 84
             };
85 85
         } else {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 {
112 112
     if (is_string($strategy)) {
113 113
         $keyParts = explode('.', $strategy);
114
-        $strategy = function ($value) use ($keyParts) {
114
+        $strategy = function($value) use ($keyParts) {
115 115
             foreach ($keyParts as $keyPart) {
116 116
                 if (is_array($value) && array_key_exists($keyPart, $value)) {
117 117
                     $value = $value[$keyPart];
Please login to merge, or discard this patch.