Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Style/Style.php 2 locations

@@ 357-359 (lines=3) @@
354
            switch ($selectionType) {
355
                case 'COLUMN':
356
                    $oldXfIndexes = [];
357
                    for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
358
                        $oldXfIndexes[$this->getActiveSheet()->getColumnDimensionByColumn($col)->getXfIndex()] = true;
359
                    }
360
361
                    break;
362
                case 'ROW':
@@ 376-378 (lines=3) @@
373
                case 'CELL':
374
                    $oldXfIndexes = [];
375
                    for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
376
                        for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) {
377
                            $oldXfIndexes[$this->getActiveSheet()->getCellByColumnAndRow($col, $row)->getXfIndex()] = true;
378
                        }
379
                    }
380
381
                    break;