@@ -112,10 +112,10 @@ |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | if ($offset < 0) { |
| 115 | - $offset = $this->size + ($offset % $this->size); |
|
| 115 | + $offset = $this->size+($offset%$this->size); |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - $offset = ($offset % $this->size); |
|
| 118 | + $offset = ($offset%$this->size); |
|
| 119 | 119 | |
| 120 | 120 | return $this->getValueByIndex($offset); |
| 121 | 121 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | return ($this->indexValueGetter)($index, $this->start); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - return reduce(xrange($index), function ($carry) { |
|
| 61 | + return reduce(xrange($index), function($carry) { |
|
| 62 | 62 | return $this->getNextValue($carry); |
| 63 | 63 | }, $this->start); |
| 64 | 64 | } |