Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Worksheet/Worksheet.php 2 locations

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