Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Style.php 2 locations

@@ 373-375 (lines=3) @@
370
            switch ($selectionType) {
371
                case 'COLUMN':
372
                    $oldXfIndexes = [];
373
                    for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
374
                        $oldXfIndexes[$this->getActiveSheet()->getColumnDimensionByColumn($col)->getXfIndex()] = true;
375
                    }
376
                    break;
377
                case 'ROW':
378
                    $oldXfIndexes = [];
@@ 390-392 (lines=3) @@
387
                case 'CELL':
388
                    $oldXfIndexes = [];
389
                    for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
390
                        for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) {
391
                            $oldXfIndexes[$this->getActiveSheet()->getCellByColumnAndRow($col, $row)->getXfIndex()] = true;
392
                        }
393
                    }
394
                    break;
395
            }