Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/CachedObjectStorage/CacheBase.php 2 locations

@@ 342-350 (lines=9) @@
339
     *
340
     * @param string $row Row number to remove
341
     */
342
    public function removeRow($row)
343
    {
344
        foreach ($this->getCellList() as $coord) {
345
            sscanf($coord, '%[A-Z]%d', $c, $r);
346
            if ($r == $row) {
347
                $this->deleteCacheData($coord);
348
            }
349
        }
350
    }
351
352
    /**
353
     * Remove a column, deleting all cells in that column.
@@ 357-365 (lines=9) @@
354
     *
355
     * @param string $column Column ID to remove
356
     */
357
    public function removeColumn($column)
358
    {
359
        foreach ($this->getCellList() as $coord) {
360
            sscanf($coord, '%[A-Z]%d', $c, $r);
361
            if ($c == $column) {
362
                $this->deleteCacheData($coord);
363
            }
364
        }
365
    }
366
367
    /**
368
     * Identify whether the caching method is currently available