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
|
@@ 158-160 (lines=3) @@
|
155 |
|
*/ |
156 |
|
public function prev() |
157 |
|
{ |
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)); |