Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Worksheet.php 2 locations

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