Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Worksheet.php 2 locations

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