Code Duplication    Length = 23-23 lines in 2 locations

src/Comodojo/Cache/Providers/Vacuum.php 1 location

@@ 28-50 (lines=23) @@
25
 * THE SOFTWARE.
26
 */
27
28
class Vacuum extends AbstractEnhancedProvider {
29
30
    public function __construct(LoggerInterface $logger = null) {
31
32
        $this->driver = new VoidDriver();
33
34
        parent::__construct($logger);
35
36
    }
37
38
    public function getStats() {
39
40
        return new EnhancedCacheItemPoolStats(
41
            $this->getId(),
42
            $this->driver->getName(),
43
            $this->getState(),
44
            0,
45
            []
46
        );
47
48
    }
49
50
}
51

src/Comodojo/SimpleCache/Providers/Vacuum.php 1 location

@@ 28-50 (lines=23) @@
25
 * THE SOFTWARE.
26
 */
27
28
class Vacuum extends AbstractEnhancedProvider {
29
30
    public function __construct(LoggerInterface $logger = null) {
31
32
        $this->driver = new VoidDriver();
33
34
        parent::__construct($logger);
35
36
    }
37
38
    public function getStats() {
39
40
        return new EnhancedCacheItemPoolStats(
41
            $this->getId(),
42
            $this->driver->getName(),
43
            $this->getState(),
44
            0,
45
            []
46
        );
47
48
    }
49
50
}
51