@@ -11,7 +11,7 @@ |
||
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 |
@@ -11,7 +11,7 @@ |
||
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 |
@@ -11,7 +11,7 @@ |
||
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 |
@@ -7,7 +7,7 @@ |
||
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 | { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | $args = array_slice(func_get_args(), 1); |
15 | 15 | $numRequiredParams = (new \ReflectionFunction($fn))->getNumberOfRequiredParameters(); |
16 | 16 | |
17 | - return function (/* ...$args */) use ($fn, $args, $numRequiredParams) { |
|
17 | + return function(/* ...$args */) use ($fn, $args, $numRequiredParams) { |
|
18 | 18 | $args = array_merge($args, func_get_args()); |
19 | 19 | |
20 | 20 | if ($numRequiredParams > count($args)) { |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | $args = func_get_args(); |
13 | 13 | |
14 | - $append = function ($x, array $xs) { |
|
14 | + $append = function($x, array $xs) { |
|
15 | 15 | return array_merge($xs, [$x]); |
16 | 16 | }; |
17 | 17 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | { |
10 | 10 | $args = func_get_args(); |
11 | 11 | |
12 | - $prepend = function ($x, array $xs) { |
|
12 | + $prepend = function($x, array $xs) { |
|
13 | 13 | return array_merge([$x], $xs); |
14 | 14 | }; |
15 | 15 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | $args = func_get_args(); |
19 | 19 | |
20 | - $getin = function (array $xs, array $ks, $notfound = false) { |
|
20 | + $getin = function(array $xs, array $ks, $notfound = false) { |
|
21 | 21 | if (false === isset($ks[0])) { |
22 | 22 | return $xs; |
23 | 23 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | $args = func_get_args(); |
17 | 17 | |
18 | - $get = function (array $xs, $x, $notfound = false) { |
|
18 | + $get = function(array $xs, $x, $notfound = false) { |
|
19 | 19 | if (isset($xs[$x])) { |
20 | 20 | return $xs[$x]; |
21 | 21 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | $args = func_get_args(); |
13 | 13 | |
14 | - $prop = function ($x, array $xs) { |
|
14 | + $prop = function($x, array $xs) { |
|
15 | 15 | if (array_key_exists($x, $xs)) { |
16 | 16 | return $xs[$x]; |
17 | 17 | } |