Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Worksheet.php 2 locations

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