Code Duplication    Length = 14-14 lines in 2 locations

src/Comodojo/Cache/Manager.php 1 location

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

src/Comodojo/SimpleCache/Manager.php 1 location

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