Code Duplication    Length = 9-9 lines in 2 locations

src/PsrCache/Pool.php 1 location

@@ 38-46 (lines=9) @@
35
    /**
36
     * Constructor.
37
     */
38
    public function __construct(CacheAdapter $cache_adapter)
39
    {
40
        $this->cache_adapter = $cache_adapter;
41
42
        $options = array(
43
            'tag_enable' => false // wether to enable tagging
44
        );
45
        $this->cache_adapter->setOptions($options);
46
    }
47
48
    /**
49
     * {@inheritdoc}

src/PsrCache/TaggablePool.php 1 location

@@ 30-38 (lines=9) @@
27
    /**
28
     * Constructor.
29
     */
30
    public function __construct(CacheAdapter $cache_adapter)
31
    {
32
        $this->cache_adapter = $cache_adapter;
33
34
        $options = array(
35
            'tag_enable' => true // wether to enable tagging
36
        );
37
        $this->cache_adapter->setOptions($options);
38
    }
39
40
    /**
41
     * {@inheritdoc}