Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Worksheet.php 2 locations

@@ 2876-2878 (lines=3) @@
2873
        foreach ($rangeBlocks as &$rangeSet) {
2874
            $rangeBoundaries = Cell::getRangeBoundaries($rangeSet);
2875
2876
            if (Cell::columnIndexFromString($rangeBoundaries[0][0]) > $maxCol) {
2877
                $rangeBoundaries[0][0] = Cell::stringFromColumnIndex($maxCol);
2878
            }
2879
            if ($rangeBoundaries[0][1] > $maxRow) {
2880
                $rangeBoundaries[0][1] = $maxRow;
2881
            }
@@ 2882-2884 (lines=3) @@
2879
            if ($rangeBoundaries[0][1] > $maxRow) {
2880
                $rangeBoundaries[0][1] = $maxRow;
2881
            }
2882
            if (Cell::columnIndexFromString($rangeBoundaries[1][0]) > $maxCol) {
2883
                $rangeBoundaries[1][0] = Cell::stringFromColumnIndex($maxCol);
2884
            }
2885
            if ($rangeBoundaries[1][1] > $maxRow) {
2886
                $rangeBoundaries[1][1] = $maxRow;
2887
            }