Code Duplication    Length = 10-10 lines in 2 locations

src/voku/cache/Cache.php 2 locations

@@ 483-492 (lines=10) @@
480
   *
481
   * @return bool
482
   */
483
  public function removeItem($key)
484
  {
485
    if ($this->adapter instanceof iAdapter) {
486
      $storeKey = $this->calculateStoreKey($key);
487
488
      return $this->adapter->remove($storeKey);
489
    } else {
490
      return false;
491
    }
492
  }
493
494
  /**
495
   * check if cached-item exists
@@ 501-510 (lines=10) @@
498
   *
499
   * @return boolean
500
   */
501
  public function existsItem($key)
502
  {
503
    if ($this->adapter instanceof iAdapter) {
504
      $storeKey = $this->calculateStoreKey($key);
505
506
      return $this->adapter->exists($storeKey);
507
    } else {
508
      return false;
509
    }
510
  }
511
512
}
513