Code Duplication    Length = 12-12 lines in 5 locations

src/phpFastCache/Core/Pool/ExtendedCacheItemPoolTrait.php 5 locations

@@ 155-166 (lines=12) @@
152
     * @return bool|null
153
     * @throws InvalidArgumentException
154
     */
155
    public function deleteItemsByTags(array $tagNames)
156
    {
157
        $return = null;
158
        foreach ($tagNames as $tagName) {
159
            $result = $this->deleteItemsByTag($tagName);
160
            if ($return !== false) {
161
                $return = $result;
162
            }
163
        }
164
165
        return $return;
166
    }
167
168
    /**
169
     * @inheritdoc
@@ 188-199 (lines=12) @@
185
    /**
186
     * @inheritdoc
187
     */
188
    public function incrementItemsByTags(array $tagNames, $step = 1)
189
    {
190
        $return = null;
191
        foreach ($tagNames as $tagName) {
192
            $result = $this->incrementItemsByTag($tagName, $step);
193
            if ($return !== false) {
194
                $return = $result;
195
            }
196
        }
197
198
        return $return;
199
    }
200
201
    /**
202
     * @inheritdoc
@@ 221-232 (lines=12) @@
218
    /**
219
     * @inheritdoc
220
     */
221
    public function decrementItemsByTags(array $tagNames, $step = 1)
222
    {
223
        $return = null;
224
        foreach ($tagNames as $tagName) {
225
            $result = $this->decrementItemsByTag($tagName, $step);
226
            if ($return !== false) {
227
                $return = $result;
228
            }
229
        }
230
231
        return $return;
232
    }
233
234
    /**
235
     * @inheritdoc
@@ 254-265 (lines=12) @@
251
    /**
252
     * @inheritdoc
253
     */
254
    public function appendItemsByTags(array $tagNames, $data)
255
    {
256
        $return = null;
257
        foreach ($tagNames as $tagName) {
258
            $result = $this->decrementItemsByTag($tagName, $data);
259
            if ($return !== false) {
260
                $return = $result;
261
            }
262
        }
263
264
        return $return;
265
    }
266
267
    /**
268
     * @inheritdoc
@@ 287-298 (lines=12) @@
284
    /**
285
     * @inheritdoc
286
     */
287
    public function prependItemsByTags(array $tagNames, $data)
288
    {
289
        $return = null;
290
        foreach ($tagNames as $tagName) {
291
            $result = $this->decrementItemsByTag($tagName, $data);
292
            if ($return !== false) {
293
                $return = $result;
294
            }
295
        }
296
297
        return $return;
298
    }
299
300
    /**
301
     * @param \Psr\Cache\CacheItemInterface $item