Code Duplication    Length = 11-13 lines in 2 locations

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

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