Code Duplication    Length = 21-21 lines in 3 locations

src/CacheManager.php 3 locations

@@ 406-426 (lines=21) @@
403
404
    }
405
406
    public function delete($name = null) {
407
408
        $delete = array();
409
410
        try {
411
412
            foreach ( $this->caches as $cache_id => $cache ) {
413
414
                $delete[$cache_id] = $cache->delete($name);
415
416
            }
417
            
418
        } catch (CacheException $ce) {
419
            
420
            throw $ce;
421
422
        }
423
424
        return $delete;
425
426
    }
427
428
    public function flush() {
429
@@ 428-448 (lines=21) @@
425
426
    }
427
428
    public function flush() {
429
430
        $flush = array();
431
432
        try {
433
434
            foreach ( $this->caches as $cache_id => $cache ) {
435
436
                $flush[$cache_id] = $cache->flush();
437
438
            }
439
            
440
        } catch (CacheException $ce) {
441
            
442
            throw $ce;
443
444
        }
445
446
        return $flush;
447
448
    }
449
450
    public function status() {
451
@@ 450-470 (lines=21) @@
447
448
    }
449
450
    public function status() {
451
452
        $status = array();
453
454
        try {
455
456
            foreach ( $this->caches as $cache_id => $cache ) {
457
458
                $status[$cache_id] = $cache->status();
459
460
            }
461
            
462
        } catch (CacheException $ce) {
463
            
464
            throw $ce;
465
466
        }
467
468
        return $status;
469
470
    }
471
472
    public function getSelectedCache() {
473