Code Duplication    Length = 7-8 lines in 2 locations

src/PhpSpreadsheet/Worksheet/ColumnIterator.php 1 location

@@ 94-100 (lines=7) @@
91
     *
92
     * @return ColumnIterator
93
     */
94
    public function resetEnd($endColumn = null)
95
    {
96
        $endColumn = $endColumn ? $endColumn : $this->worksheet->getHighestColumn();
97
        $this->endColumnIndex = Coordinate::columnIndexFromString($endColumn);
98
99
        return $this;
100
    }
101
102
    /**
103
     * Set the column pointer to the selected column.

src/PhpSpreadsheet/Worksheet/RowCellIterator.php 1 location

@@ 90-97 (lines=8) @@
87
     *
88
     * @return RowCellIterator
89
     */
90
    public function resetEnd($endColumn = null)
91
    {
92
        $endColumn = $endColumn ? $endColumn : $this->worksheet->getHighestColumn();
93
        $this->endColumnIndex = Coordinate::columnIndexFromString($endColumn);
94
        $this->adjustForExistingOnlyRange();
95
96
        return $this;
97
    }
98
99
    /**
100
     * Set the column pointer to the selected column.