Code Duplication    Length = 14-14 lines in 2 locations

src/Comodojo/Cache/Manager.php 1 location

@@ 187-200 (lines=14) @@
184
185
            return new Item($key);
186
187
        } else {
188
189
            foreach ($this->stack as $provider) {
190
191
                $result[] = $provider[0]->hasItem($key);
192
193
                // selected provider has no sense in this case
194
                $this->selected = $provider[0];
195
196
            }
197
198
            return !in_array(false, $result);
199
200
        }
201
202
    }
203

src/Comodojo/SimpleCache/Manager.php 1 location

@@ 259-272 (lines=14) @@
256
257
            // return array_combine($key, array_fill(0, count($key), $default));
258
259
        } else {
260
261
            foreach ($this->stack as $provider) {
262
263
                $result[] = $provider[0]->has($key);
264
265
                // selected provider has no sense in this case
266
                $this->selected = $provider[0];
267
268
            }
269
270
            return !in_array(false, $result);
271
272
        }
273
274
    }
275