Code Duplication    Length = 12-12 lines in 2 locations

src/voku/cache/AdapterMemcache.php 1 location

@@ 132-143 (lines=12) @@
129
   *
130
   * @return mixed
131
   */
132
  public function get($key)
133
  {
134
    static $memcachedCache;
135
136
    if (isset($memcachedCache[$key])) {
137
      return $memcachedCache[$key];
138
    } else {
139
      $return = $this->memcache->get($key);
140
      $memcachedCache[$key] = $return;
141
      return $return;
142
    }
143
  }
144
145
  /**
146
   * check if cache is installed

src/voku/cache/AdapterMemcached.php 1 location

@@ 134-145 (lines=12) @@
131
   *
132
   * @return mixed
133
   */
134
  public function get($key)
135
  {
136
    static $memcachedCache;
137
138
    if (isset($memcachedCache[$key])) {
139
      return $memcachedCache[$key];
140
    } else {
141
      $return = $this->memcached->get($key);
142
      $memcachedCache[$key] = $return;
143
      return $return;
144
    }
145
  }
146
147
  /**
148
   * check if cache is installed