Completed
Push — master ( 7f834d...3d4931 )
by Pol
02:09
created
src/Permutations.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     foreach (new Combinations($items, $this->getLength()) as $dataset) {
92 92
       if (empty($dataset)) {
93 93
         $return = array($perms);
94
-      }  else {
94
+      } else {
95 95
         $return = array();
96 96
         for ($i = count($dataset) - 1; $i >= 0; --$i) {
97 97
           $newitems = $dataset;
Please login to merge, or discard this patch.
src/Combinations.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
   public function next() {
60 60
     if ($this->_next()) {
61 61
       $this->pos++;
62
-    }
63
-    else {
62
+    } else {
64 63
       $this->pos = -1;
65 64
     }
66 65
   }
Please login to merge, or discard this patch.