@@ -60,7 +60,7 @@ |
||
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) |
@@ -122,7 +122,7 @@ |
||
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 |