Completed
Push — master ( 5bcf9f...d39085 )
by Sérgio
02:42
created
src/reduce.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     $args = func_get_args();
15 15
 
16
-    $reduce = function (\Closure $fn, array $ls, $initial = null) {
16
+    $reduce = function(\Closure $fn, array $ls, $initial = null) {
17 17
         return array_reduce($ls, $fn, $initial);
18 18
     };
19 19
 
Please login to merge, or discard this patch.
src/pipe.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
 {
15 15
     $ls = func_get_args();
16 16
 
17
-    $pipe = function (array $ls) {
18
-        return array_reduce($ls, function ($carry, $fn) {
17
+    $pipe = function(array $ls) {
18
+        return array_reduce($ls, function($carry, $fn) {
19 19
             if (is_null($carry)) {
20 20
                 return $fn;
21 21
             }
22 22
 
23
-            return function () use ($carry, $fn) {
23
+            return function() use ($carry, $fn) {
24 24
                 $args = func_get_args();
25 25
 
26 26
                 return $fn(call_user_func_array($carry, $args));
Please login to merge, or discard this patch.
src/flatten.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
 {
12 12
     $args = func_get_args();
13 13
 
14
-    $flatten = function (array $ls) {
15
-        return array_reduce($ls, function ($carry, $curr) {
14
+    $flatten = function(array $ls) {
15
+        return array_reduce($ls, function($carry, $curr) {
16 16
             if (is_array($curr)) {
17 17
                 return array_merge($carry, flatten($curr));
18 18
             }
Please login to merge, or discard this patch.
src/each.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 {
12 12
     $args = func_get_args();
13 13
 
14
-    $every = function (\Closure $fn, array $ls) {
14
+    $every = function(\Closure $fn, array $ls) {
15 15
         $keys = array_keys($ls);
16 16
         $count = (new \ReflectionFunction($fn))->getNumberOfRequiredParameters();
17 17
 
18
-        return array_reduce($keys, function ($carry, $key) use ($fn, $ls, $count) {
18
+        return array_reduce($keys, function($carry, $key) use ($fn, $ls, $count) {
19 19
             $args = $ls[$key];
20 20
 
21 21
             if ($count > 1) {
Please login to merge, or discard this patch.
src/filter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     $args = func_get_args();
15 15
 
16
-    $filter = function (\Closure $fn, array $ls) {
16
+    $filter = function(\Closure $fn, array $ls) {
17 17
         return array_filter($ls, $fn);
18 18
     };
19 19
 
Please login to merge, or discard this patch.