Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Worksheet.php 2 locations

@@ 2805-2807 (lines=3) @@
2802
        foreach ($rangeBlocks as &$rangeSet) {
2803
            $rangeBoundaries = Cell::getRangeBoundaries($rangeSet);
2804
2805
            if (Cell::columnIndexFromString($rangeBoundaries[0][0]) > $maxCol) {
2806
                $rangeBoundaries[0][0] = Cell::stringFromColumnIndex($maxCol);
2807
            }
2808
            if ($rangeBoundaries[0][1] > $maxRow) {
2809
                $rangeBoundaries[0][1] = $maxRow;
2810
            }
@@ 2811-2813 (lines=3) @@
2808
            if ($rangeBoundaries[0][1] > $maxRow) {
2809
                $rangeBoundaries[0][1] = $maxRow;
2810
            }
2811
            if (Cell::columnIndexFromString($rangeBoundaries[1][0]) > $maxCol) {
2812
                $rangeBoundaries[1][0] = Cell::stringFromColumnIndex($maxCol);
2813
            }
2814
            if ($rangeBoundaries[1][1] > $maxRow) {
2815
                $rangeBoundaries[1][1] = $maxRow;
2816
            }