Completed
Push — master ( c12907...a568ab )
by Sérgio
02:32
created
src/append.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
-    $append = function ($el, array $ls) {
14
+    $append = function($el, array $ls) {
15 15
         array_push($ls, $el);
16 16
         return $ls;
17 17
     };
Please login to merge, or discard this patch.
src/prepend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     $args = func_get_args();
11 11
 
12
-    $prepend = function ($el, array $ls) {
12
+    $prepend = function($el, array $ls) {
13 13
         array_unshift($ls, $el);
14 14
         return $ls;
15 15
     };
Please login to merge, or discard this patch.
src/lt.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
-    $lt = function ($a, $b) {
14
+    $lt = function($a, $b) {
15 15
         return $a < $b;
16 16
     };
17 17
 
Please login to merge, or discard this patch.
src/always.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
-    $always = function ($val) {
15
-        return function () use ($val) {
14
+    $always = function($val) {
15
+        return function() use ($val) {
16 16
             return $val;
17 17
         };
18 18
     };
Please login to merge, or discard this patch.
src/ifelse.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
-    $ifelse = function ($condition, $ontrue, $onfalse) {
15
-        return function ($args) use ($condition, $ontrue, $onfalse) {
14
+    $ifelse = function($condition, $ontrue, $onfalse) {
15
+        return function($args) use ($condition, $ontrue, $onfalse) {
16 16
             if (call_user_func($condition, $args)) {
17 17
                 return call_user_func($ontrue, $args);
18 18
             }
Please login to merge, or discard this patch.
src/get.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
     $args = func_get_args();
17 17
 
18
-    $get = function ($map, $key, $notfound = false) {
18
+    $get = function($map, $key, $notfound = false) {
19 19
         $map = (array) $map;
20 20
         
21 21
         if (array_key_exists($key, $map)) {
Please login to merge, or discard this patch.
src/partial.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
     $params = (new \ReflectionFunction($fn))->getNumberOfRequiredParameters();
16 16
 
17
-    return function () use ($fn, $args, $params) {
17
+    return function() use ($fn, $args, $params) {
18 18
         $args = array_merge($args, func_get_args());
19 19
 
20 20
         if ($params > count($args)) {
Please login to merge, or discard this patch.
src/take.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
-    $take = function ($n, array $ls) {
14
+    $take = function($n, array $ls) {
15 15
         return array_slice($ls, 0, $n);
16 16
     };
17 17
 
Please login to merge, or discard this patch.
src/drop.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
-    $drop = function ($n, array $ls) {
14
+    $drop = function($n, array $ls) {
15 15
         return array_slice($ls, $n);
16 16
     };
17 17
 
Please login to merge, or discard this patch.