Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Worksheet/Worksheet.php 2 locations

@@ 2867-2869 (lines=3) @@
2864
        foreach ($rangeBlocks as &$rangeSet) {
2865
            $rangeBoundaries = Cell::getRangeBoundaries($rangeSet);
2866
2867
            if (Cell::columnIndexFromString($rangeBoundaries[0][0]) > $maxCol) {
2868
                $rangeBoundaries[0][0] = Cell::stringFromColumnIndex($maxCol);
2869
            }
2870
            if ($rangeBoundaries[0][1] > $maxRow) {
2871
                $rangeBoundaries[0][1] = $maxRow;
2872
            }
@@ 2873-2875 (lines=3) @@
2870
            if ($rangeBoundaries[0][1] > $maxRow) {
2871
                $rangeBoundaries[0][1] = $maxRow;
2872
            }
2873
            if (Cell::columnIndexFromString($rangeBoundaries[1][0]) > $maxCol) {
2874
                $rangeBoundaries[1][0] = Cell::stringFromColumnIndex($maxCol);
2875
            }
2876
            if ($rangeBoundaries[1][1] > $maxRow) {
2877
                $rangeBoundaries[1][1] = $maxRow;
2878
            }