@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $args = func_get_args(); |
| 13 | 13 | |
| 14 | - $each = function (\Closure $fn, array $ls) { |
|
| 14 | + $each = function(\Closure $fn, array $ls) { |
|
| 15 | 15 | array_walk($ls, $fn); |
| 16 | 16 | return $ls; |
| 17 | 17 | }; |
@@ -11,7 +11,7 @@ |
||
| 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 | }; |
@@ -9,7 +9,7 @@ |
||
| 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 | }; |
@@ -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 | |
@@ -11,8 +11,8 @@ |
||
| 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 | }; |
@@ -11,8 +11,8 @@ |
||
| 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 | } |
@@ -15,7 +15,7 @@ |
||
| 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)) { |