Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Worksheet.php 2 locations

@@ 2895-2897 (lines=3) @@
2892
        foreach ($rangeBlocks as &$rangeSet) {
2893
            $rangeBoundaries = Cell::getRangeBoundaries($rangeSet);
2894
2895
            if (Cell::columnIndexFromString($rangeBoundaries[0][0]) > $maxCol) {
2896
                $rangeBoundaries[0][0] = Cell::stringFromColumnIndex($maxCol);
2897
            }
2898
            if ($rangeBoundaries[0][1] > $maxRow) {
2899
                $rangeBoundaries[0][1] = $maxRow;
2900
            }
@@ 2901-2903 (lines=3) @@
2898
            if ($rangeBoundaries[0][1] > $maxRow) {
2899
                $rangeBoundaries[0][1] = $maxRow;
2900
            }
2901
            if (Cell::columnIndexFromString($rangeBoundaries[1][0]) > $maxCol) {
2902
                $rangeBoundaries[1][0] = Cell::stringFromColumnIndex($maxCol);
2903
            }
2904
            if ($rangeBoundaries[1][1] > $maxRow) {
2905
                $rangeBoundaries[1][1] = $maxRow;
2906
            }