Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Worksheet.php 2 locations

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