Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Worksheet.php 2 locations

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