@@ 146-148 (lines=3) @@ | ||
143 | */ |
|
144 | public function next() |
|
145 | { |
|
146 | do { |
|
147 | ++$this->currentColumnIndex; |
|
148 | } while (($this->onlyExistingCells) && (!$this->worksheet->cellExistsByColumnAndRow($this->currentColumnIndex, $this->rowIndex)) && ($this->currentColumnIndex <= $this->endColumnIndex)); |
|
149 | } |
|
150 | ||
151 | /** |
|
@@ 161-163 (lines=3) @@ | ||
158 | if ($this->currentColumnIndex <= $this->startColumnIndex) { |
|
159 | throw new PhpSpreadsheetException('Column is already at the beginning of range (' . Coordinate::stringFromColumnIndex($this->endColumnIndex) . ' - ' . Coordinate::stringFromColumnIndex($this->endColumnIndex) . ')'); |
|
160 | } |
|
161 | do { |
|
162 | --$this->currentColumnIndex; |
|
163 | } while (($this->onlyExistingCells) && (!$this->worksheet->cellExistsByColumnAndRow($this->currentColumnIndex, $this->rowIndex)) && ($this->currentColumnIndex >= $this->startColumnIndex)); |
|
164 | } |
|
165 | ||
166 | /** |