Code Duplication    Length = 10-10 lines in 2 locations

src/voku/cache/Cache.php 2 locations

@@ 525-534 (lines=10) @@
522
   *
523
   * @return bool
524
   */
525
  public function removeItem($key)
526
  {
527
    if ($this->adapter instanceof iAdapter) {
528
      $storeKey = $this->calculateStoreKey($key);
529
530
      return $this->adapter->remove($storeKey);
531
    } else {
532
      return false;
533
    }
534
  }
535
536
  /**
537
   * check if cached-item exists
@@ 543-552 (lines=10) @@
540
   *
541
   * @return boolean
542
   */
543
  public function existsItem($key)
544
  {
545
    if ($this->adapter instanceof iAdapter) {
546
      $storeKey = $this->calculateStoreKey($key);
547
548
      return $this->adapter->exists($storeKey);
549
    } else {
550
      return false;
551
    }
552
  }
553
554
}
555