| @@ 174-179 (lines=6) @@ | ||
| 171 | // Don't use array slice |
|
| 172 | $arrays = array(); |
|
| 173 | $end = $length + $this->_offset; |
|
| 174 | for ($i = $this->_offset; $i < $end; ++$i) { |
|
| 175 | if (!isset($this->_array[$i])) { |
|
| 176 | break; |
|
| 177 | } |
|
| 178 | $arrays[] = $this->_array[$i]; |
|
| 179 | } |
|
| 180 | ||
| 181 | $this->_offset += $i - $this->_offset; // Limit function calls |
|
| 182 | ||
| @@ 207-212 (lines=6) @@ | ||
| 204 | ||
| 205 | $arrays = array(); |
|
| 206 | $end = $length + $this->_offset; |
|
| 207 | for ($i = $this->_offset; $i < $end; ++$i) { |
|
| 208 | if (!isset($this->_array[$i])) { |
|
| 209 | break; |
|
| 210 | } |
|
| 211 | $arrays[] = $this->_array[$i]; |
|
| 212 | } |
|
| 213 | ||
| 214 | $this->_offset += ($i - $this->_offset); // Limit function calls |
|
| 215 | ||