Completed
Push — master ( 15a3ff...ddeb31 )
by Pol
02:16
created
src/Permutations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
    */
61 61
   protected function permute($p, $size) {
62 62
     // slide down the array looking for where we're smaller than the next guy
63
-    for ($i = $size - 1; $i >= 0 && $p[$i] >= $p[$i+1]; --$i) { }
63
+    for ($i = $size - 1; $i >= 0 && $p[$i] >= $p[$i + 1]; --$i) { }
64 64
 
65 65
     // if this doesn't occur, we've finished our permutations
66 66
     // the array is reversed: (1, 2, 3, 4) => (4, 3, 2, 1)
Please login to merge, or discard this patch.
src/Product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
   public function toArray() {
123 123
     $data = array();
124 124
 
125
-    for($this->rewind(); $this->valid(); $this->next()) {
125
+    for ($this->rewind(); $this->valid(); $this->next()) {
126 126
       $data[] = $this->current();
127 127
     }
128 128
 
Please login to merge, or discard this patch.