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

@@ 127-138 (lines=12) @@
124
   *
125
   * @return mixed
126
   */
127
  public function get($key)
128
  {
129
    static $memcachedCache;
130
131
    if (isset($memcachedCache[$key])) {
132
      return $memcachedCache[$key];
133
    } else {
134
      $return = $this->memcached->get($key);
135
      $memcachedCache[$key] = $return;
136
      return $return;
137
    }
138
  }
139
140
  /**
141
   * check if cache is installed