Code Duplication    Length = 10-10 lines in 2 locations

src/voku/cache/Cache.php 2 locations

@@ 474-483 (lines=10) @@
471
   *
472
   * @return bool
473
   */
474
  public function removeItem($key)
475
  {
476
    if ($this->adapter instanceof iAdapter) {
477
      $storeKey = $this->calculateStoreKey($key);
478
479
      return $this->adapter->remove($storeKey);
480
    } else {
481
      return false;
482
    }
483
  }
484
485
  /**
486
   * check if cached-item exists
@@ 492-501 (lines=10) @@
489
   *
490
   * @return boolean
491
   */
492
  public function existsItem($key)
493
  {
494
    if ($this->adapter instanceof iAdapter) {
495
      $storeKey = $this->calculateStoreKey($key);
496
497
      return $this->adapter->exists($storeKey);
498
    } else {
499
      return false;
500
    }
501
  }
502
503
}
504