Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Worksheet.php 2 locations

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