@@ -94,9 +94,9 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | function pipe() { |
| 96 | 96 | $fns = func_get_args(); |
| 97 | - if(count($fns) < 1) |
|
| 97 | + if (count($fns) < 1) |
|
| 98 | 98 | return identity(); |
| 99 | - return curry(function () use ($fns) { |
|
| 99 | + return curry(function() use ($fns) { |
|
| 100 | 100 | $result = _apply(array_shift($fns), func_get_args()); |
| 101 | 101 | foreach ($fns as $fn) { |
| 102 | 102 | $result = $fn($result); |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | static $comparator = false; |
| 266 | 266 | $comparator = $comparator ?: curry(function($fn) { |
| 267 | 267 | return function($a, $b) use($fn) { |
| 268 | - if ($fn($a, $b)) return -1; |
|
| 268 | + if ($fn($a, $b)) return - 1; |
|
| 269 | 269 | if ($fn($b, $a)) return 1; |
| 270 | 270 | return 0; |
| 271 | 271 | }; |