Completed
Push — master ( cba614...f7e6da )
by Pol
07:09
created
src/Generators/Permutations.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace drupol\phpermutations\Generators;
4 4
 
5
-use drupol\phpermutations\Iterators\RangeIterator;
6 5
 use drupol\phpermutations\Permutations as PermutationsClass;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
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/Iterators/FiniteGroup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
   public function order($generator) {
154 154
     $result = array();
155 155
 
156
-    foreach(range(1, $this->getSize() - 1) as $number) {
156
+    foreach (range(1, $this->getSize() - 1) as $number) {
157 157
       $value = pow($generator, $number) % $this->getSize();
158 158
       $result[$value] = $value;
159 159
     }
Please login to merge, or discard this patch.