Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Collection/Cells.php 2 locations

@@ 356-364 (lines=9) @@
353
     *
354
     * @param string $row Row number to remove
355
     */
356
    public function removeRow($row)
357
    {
358
        foreach ($this->getCoordinates() as $coord) {
359
            sscanf($coord, '%[A-Z]%d', $c, $r);
360
            if ($r == $row) {
361
                $this->delete($coord);
362
            }
363
        }
364
    }
365
366
    /**
367
     * Remove a column, deleting all cells in that column.
@@ 371-379 (lines=9) @@
368
     *
369
     * @param string $column Column ID to remove
370
     */
371
    public function removeColumn($column)
372
    {
373
        foreach ($this->getCoordinates() as $coord) {
374
            sscanf($coord, '%[A-Z]%d', $c, $r);
375
            if ($c == $column) {
376
                $this->delete($coord);
377
            }
378
        }
379
    }
380
381
    /**
382
     * Store cell data in cache for the current cell object if it's "dirty",