Completed
Push — master ( 2ef9a2...e0a631 )
by Pol
02:35
created
src/Generators/Product.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
           }
41 41
         }
42 42
       }
43
-    }
44
-    else {
43
+    } else {
45 44
       yield [];
46 45
     }
47 46
   }
Please login to merge, or discard this patch.
src/Iterators/Combinations.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
   public function next() {
63 63
     if ($this->nextHelper()) {
64 64
       $this->key++;
65
-    }
66
-    else {
65
+    } else {
67 66
       $this->key = -1;
68 67
     }
69 68
   }
Please login to merge, or discard this patch.
src/Generators/Combinations.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
       $current = $dataset[$i];
43 43
       if ($length === 1) {
44 44
         yield [$current];
45
-      }
46
-      else {
45
+      } else {
47 46
         $remaining = array_slice($dataset, $i + 1);
48 47
         foreach ($this->get($remaining, $length - 1) as $permutation) {
49 48
           array_unshift($permutation, $current);
Please login to merge, or discard this patch.