Code Duplication    Length = 10-10 lines in 2 locations

src/Cache/FixedTaggingCachePool.php 2 locations

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