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
   * remove cache
@@ 557-566 (lines=10) @@
554
   *
555
   * @return boolean
556
   */
557
  public function existsItem($key)
558
  {
559
    if ($this->adapter instanceof iAdapter) {
560
      $storeKey = $this->calculateStoreKey($key);
561
562
      return $this->adapter->exists($storeKey);
563
    } else {
564
      return false;
565
    }
566
  }
567
568
}
569