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

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