Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Worksheet/Worksheet.php 2 locations

@@ 1569-1573 (lines=5) @@
1566
        }
1567
1568
        // Loop through cells and apply styles
1569
        for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
1570
            for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) {
1571
                $this->getCell(Cell::stringFromColumnIndex($col - 1) . $row)->setXfIndex($xfIndex);
1572
            }
1573
        }
1574
1575
        return $this;
1576
    }
@@ 1609-1613 (lines=5) @@
1606
        }
1607
1608
        // Loop through cells and apply styles
1609
        for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
1610
            for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) {
1611
                $this->setConditionalStyles(Cell::stringFromColumnIndex($col - 1) . $row, $pCellStyle);
1612
            }
1613
        }
1614
1615
        return $this;
1616
    }