Code Duplication    Length = 8-8 lines in 2 locations

src/PhpSpreadsheet/Worksheet/ColumnCellIterator.php 1 location

@@ 46-53 (lines=8) @@
43
     * @param int $startRow The row number at which to start iterating
44
     * @param int $endRow Optionally, the row number at which to stop iterating
45
     */
46
    public function __construct(Worksheet $subject = null, $columnIndex = 'A', $startRow = 1, $endRow = null)
47
    {
48
        // Set subject
49
        $this->worksheet = $subject;
50
        $this->columnIndex = Coordinate::columnIndexFromString($columnIndex);
51
        $this->resetEnd($endRow);
52
        $this->resetStart($startRow);
53
    }
54
55
    /**
56
     * (Re)Set the start row and the current row pointer.

src/PhpSpreadsheet/Worksheet/RowCellIterator.php 1 location

@@ 46-53 (lines=8) @@
43
     * @param string $startColumn The column address at which to start iterating
44
     * @param string $endColumn Optionally, the column address at which to stop iterating
45
     */
46
    public function __construct(Worksheet $worksheet = null, $rowIndex = 1, $startColumn = 'A', $endColumn = null)
47
    {
48
        // Set subject and row index
49
        $this->worksheet = $worksheet;
50
        $this->rowIndex = $rowIndex;
51
        $this->resetEnd($endColumn);
52
        $this->resetStart($startColumn);
53
    }
54
55
    /**
56
     * (Re)Set the start column and the current column pointer.