Completed
Push — master ( 6e9d6d...537dfc )
by Amine
02:21 queued 22s
created
src/Classes/Stream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     public static function operation($name, $signatures, $fn = null)
55 55
     {
56
-        if (! is_array($signatures)) {
56
+        if (!is_array($signatures)) {
57 57
             $signatures = [$signatures];
58 58
         }
59 59
         foreach ($signatures as $signature) {
Please login to merge, or discard this patch.
src/Classes/Placeholder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@
 block discarded – undo
8 8
  */
9 9
 class Placeholder {
10 10
     private static $instance;
11
-    private function __construct(){}
11
+    private function __construct() {}
12 12
     public static function get()
13 13
     {
14
-        if(static::$instance === null)
14
+        if (static::$instance === null)
15 15
             static::$instance = new Placeholder;
16 16
         return static::$instance;
17 17
     }
18
-    public function __toString(){
18
+    public function __toString() {
19 19
         return '__';
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
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.