Completed
Push — master ( 2ee6da...43a292 )
by Sérgio
08:51 queued 04:14
created
src/curry.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  *
8 8
  * @param \Closure|string $fn
9 9
  *
10
- * @return mixed
10
+ * @return \Closure
11 11
  */
12 12
 function curry($fn)
13 13
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     $args = tail(func_get_args());
15 15
     $count = (new \ReflectionFunction($fn))->getNumberOfRequiredParameters();
16 16
 
17
-    return function () use ($fn, $args, $count) {
17
+    return function() use ($fn, $args, $count) {
18 18
         $args = array_merge($args, func_get_args());
19 19
 
20 20
         if ($count > count($args)) {
Please login to merge, or discard this patch.
src/equals.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     $args = func_get_args();
13 13
 
14
-    $equals = function ($a, $b) {
14
+    $equals = function($a, $b) {
15 15
         return $a === $b;
16 16
     };
17 17
 
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 ($fn, $ls) {
14
+    $every = function($fn, $ls) {
15 15
         $keys = array_keys($ls);
16 16
         $count = (new \ReflectionFunction($fn))->getNumberOfRequiredParameters();
17 17
 
18
-        return array_reduce($keys, function ($carry, $idx) use ($fn, $ls, $count) {
18
+        return array_reduce($keys, function($carry, $idx) use ($fn, $ls, $count) {
19 19
             $args = $ls[$idx];
20 20
 
21 21
             if ($count > 1) {
Please login to merge, or discard this patch.
src/gt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     $args = func_get_args();
13 13
 
14
-    $gt = function ($a, $b) {
14
+    $gt = function($a, $b) {
15 15
         return $a > $b;
16 16
     };
17 17
 
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
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     $args = func_get_args();
13 13
 
14
-    $filter = function ($fn, $ls) {
14
+    $filter = function($fn, $ls) {
15 15
         return array_filter($ls, $fn);
16 16
     };
17 17
 
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 ($ls) {
18
-        return array_reduce($ls, function ($carry, $fn) {
17
+    $pipe = function($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
                 return $fn(call_user_func_array($carry, $args));
26 26
             };
Please login to merge, or discard this patch.
src/has.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  */
12 12
 function has($prop)
13 13
 {
14
-    $has = function ($prop, $ls) {
14
+    $has = function($prop, $ls) {
15 15
         if (is_object($ls)) {
16 16
             $ls = (array) $ls;
17 17
         }
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
 function flatten($ls)
13 13
 {
14
-    $flatten = function ($ls) {
15
-        return array_reduce($ls, function ($carry, $curr) {
14
+    $flatten = function($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.