Code Duplication    Length = 11-11 lines in 2 locations

src/Comodojo/Cache/Components/StackManager.php 2 locations

@@ 142-152 (lines=11) @@
139
140
    }
141
142
    public function getFirst() {
143
144
        $providers = $this->getEnabled();
145
146
        if ( empty($providers) ) return null;
147
148
        reset($providers);
149
150
        return current($providers);
151
152
    }
153
154
    public function getLast() {
155
@@ 154-164 (lines=11) @@
151
152
    }
153
154
    public function getLast() {
155
156
        $providers = $this->getEnabled();
157
158
        if ( empty($providers) ) return null;
159
160
        reset($providers);
161
162
        return end($providers);
163
164
    }
165
166
    public function getByWeight() {
167