Code Duplication    Length = 9-9 lines in 2 locations

src/Comodojo/Cache/Cache.php 2 locations

@@ 188-196 (lines=9) @@
185
186
    }
187
188
    public function setTime($time = null) {
189
190
        $return = parent::setTime($time);
191
192
        foreach ( $this->stack->getAll(false) as $provider ) $provider->setTime($time);
193
194
        return $return;
195
196
    }
197
198
    public function setTtl($ttl = null) {
199
@@ 198-206 (lines=9) @@
195
196
    }
197
198
    public function setTtl($ttl = null) {
199
200
        $return = parent::setTtl($ttl);
201
202
        foreach ( $this->stack->getAll(false) as $provider ) $provider->setTtl($ttl);
203
204
        return $return;
205
206
    }
207
208
    public function setLogger(LoggerInterface $logger = null) {
209