src/PhpSpreadsheet/Worksheet/ColumnIterator.php 1 location
|
@@ 165-167 (lines=3) @@
|
162 |
|
*/ |
163 |
|
public function prev() |
164 |
|
{ |
165 |
|
if ($this->currentColumnIndex <= $this->startColumnIndex) { |
166 |
|
throw new PhpSpreadsheetException('Column is already at the beginning of range (' . Coordinate::stringFromColumnIndex($this->endColumnIndex) . ' - ' . Coordinate::stringFromColumnIndex($this->endColumnIndex) . ')'); |
167 |
|
} |
168 |
|
--$this->currentColumnIndex; |
169 |
|
} |
170 |
|
|
src/PhpSpreadsheet/Worksheet/RowCellIterator.php 1 location
|
@@ 166-168 (lines=3) @@
|
163 |
|
*/ |
164 |
|
public function prev() |
165 |
|
{ |
166 |
|
if ($this->currentColumnIndex <= $this->startColumnIndex) { |
167 |
|
throw new PhpSpreadsheetException('Column is already at the beginning of range (' . Coordinate::stringFromColumnIndex($this->endColumnIndex) . ' - ' . Coordinate::stringFromColumnIndex($this->endColumnIndex) . ')'); |
168 |
|
} |
169 |
|
do { |
170 |
|
--$this->currentColumnIndex; |
171 |
|
} while (($this->onlyExistingCells) && (!$this->worksheet->cellExistsByColumnAndRow($this->currentColumnIndex, $this->rowIndex)) && ($this->currentColumnIndex >= $this->startColumnIndex)); |