Code Duplication    Length = 10-10 lines in 2 locations

src/Cache/FixedTaggingCachePool.php 2 locations

@@ 97-106 (lines=10) @@
94
    /**
95
     * {@inheritdoc}
96
     */
97
    public function save(CacheItemInterface $item)
98
    {
99
        if (!$item instanceof TaggableCacheItemInterface) {
100
            throw new InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.');
101
        }
102
103
        $item->setTags($this->tags);
104
105
        return $this->cache->save($item);
106
    }
107
108
    /**
109
     * {@inheritdoc}
@@ 111-120 (lines=10) @@
108
    /**
109
     * {@inheritdoc}
110
     */
111
    public function saveDeferred(CacheItemInterface $item)
112
    {
113
        if (!$item instanceof TaggableCacheItemInterface) {
114
            throw new InvalidArgumentException('Cache items are not transferable between pools. Item MUST implement TaggableCacheItemInterface.');
115
        }
116
117
        $item->setTags($this->tags);
118
119
        return $this->cache->saveDeferred($item);
120
    }
121
122
    /**
123
     * {@inheritdoc}