Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Worksheet/Worksheet.php 2 locations

@@ 1577-1581 (lines=5) @@
1574
        }
1575
1576
        // Loop through cells and apply styles
1577
        for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
1578
            for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) {
1579
                $this->getCell(Coordinate::stringFromColumnIndex($col) . $row)->setXfIndex($xfIndex);
1580
            }
1581
        }
1582
1583
        return $this;
1584
    }
@@ 1617-1621 (lines=5) @@
1614
        }
1615
1616
        // Loop through cells and apply styles
1617
        for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) {
1618
            for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) {
1619
                $this->setConditionalStyles(Coordinate::stringFromColumnIndex($col) . $row, $pCellStyle);
1620
            }
1621
        }
1622
1623
        return $this;
1624
    }