Completed
Push — master ( ec481a...cafea5 )
by Amine
8s
created
src/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         };
Please login to merge, or discard this patch.