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

@@ 82-89 (lines=8) @@
79
     *
80
     * @return RowCellIterator
81
     */
82
    public function resetEnd($endColumn = null)
83
    {
84
        $endColumn = $endColumn ? $endColumn : $this->worksheet->getHighestColumn();
85
        $this->endColumnIndex = Coordinate::columnIndexFromString($endColumn);
86
        $this->adjustForExistingOnlyRange();
87
88
        return $this;
89
    }
90
91
    /**
92
     * Set the column pointer to the selected column.