Code Duplication    Length = 11-13 lines in 2 locations

src/Comodojo/Cache/Traits/GenericManagerTrait.php 2 locations

@@ 53-65 (lines=13) @@
50
51
    }
52
53
    public function clear() {
54
55
        $result = [];
56
57
        foreach ( $this->stack->getAll() as $provider ) {
58
59
            $result[] = $provider->clear();
60
61
        }
62
63
        return !in_array(false, $result);
64
65
    }
66
67
    public function setNamespace($namespace = null) {
68
@@ 79-89 (lines=11) @@
76
77
    }
78
79
    public function clearNamespace() {
80
81
        $result = [];
82
83
        foreach ( $this->stack->getAll() as $provider ) {
84
            $result[] = $provider->clearNamespace();
85
        }
86
87
        return !in_array(false, $result);
88
89
    }
90
91
    public function getStats() {
92