Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Worksheet.php 2 locations

@@ 1542-1546 (lines=5) @@
1539
        }
1540
1541
        // Loop through cells and apply styles
1542
        for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
1543
            for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) {
1544
                $this->getCell(Cell::stringFromColumnIndex($col - 1) . $row)->setXfIndex($xfIndex);
1545
            }
1546
        }
1547
1548
        return $this;
1549
    }
@@ 1580-1584 (lines=5) @@
1577
        }
1578
1579
        // Loop through cells and apply styles
1580
        for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
1581
            for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) {
1582
                $this->setConditionalStyles(Cell::stringFromColumnIndex($col - 1) . $row, $pCellStyle);
1583
            }
1584
        }
1585
1586
        return $this;
1587
    }