Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Style.php 2 locations

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