Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Worksheet.php 2 locations

@@ 1593-1597 (lines=5) @@
1590
        }
1591
1592
        // Loop through cells and apply styles
1593
        for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
1594
            for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) {
1595
                $this->getCell(Cell::stringFromColumnIndex($col - 1) . $row)->setXfIndex($xfIndex);
1596
            }
1597
        }
1598
1599
        return $this;
1600
    }
@@ 1633-1637 (lines=5) @@
1630
        }
1631
1632
        // Loop through cells and apply styles
1633
        for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
1634
            for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) {
1635
                $this->setConditionalStyles(Cell::stringFromColumnIndex($col - 1) . $row, $pCellStyle);
1636
            }
1637
        }
1638
1639
        return $this;
1640
    }