Passed
Push — master ( f7e6da...898aad )
by Pol
13:25
created
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.