Code Duplication    Length = 14-14 lines in 2 locations

src/Comodojo/Cache/Manager.php 1 location

@@ 212-225 (lines=14) @@
209
210
            return new Item($key);
211
212
        } else {
213
214
            foreach ( $this->stack as $provider ) {
215
216
                $result[] = $provider[0]->hasItem($key);
217
218
                // selected provider has no sense in this case
219
                $this->selected = $provider[0];
220
221
            }
222
223
            return !in_array(false, $result);
224
225
        }
226
227
    }
228

src/Comodojo/SimpleCache/Manager.php 1 location

@@ 287-300 (lines=14) @@
284
285
            // return array_combine($key, array_fill(0, count($key), $default));
286
287
        } else {
288
289
            foreach ( $this->stack as $provider ) {
290
291
                $result[] = $provider[0]->has($key);
292
293
                // selected provider has no sense in this case
294
                $this->selected = $provider[0];
295
296
            }
297
298
            return !in_array(false, $result);
299
300
        }
301
302
    }
303