Code Duplication    Length = 12-12 lines in 5 locations

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

@@ 148-159 (lines=12) @@
145
    /**
146
     * @inheritdoc
147
     */
148
    public function deleteItemsByTags(array $tagNames)
149
    {
150
        $return = null;
151
        foreach ($tagNames as $tagName) {
152
            $result = $this->deleteItemsByTag($tagName);
153
            if ($return !== false) {
154
                $return = $result;
155
            }
156
        }
157
158
        return $return;
159
    }
160
161
    /**
162
     * @inheritdoc
@@ 199-210 (lines=12) @@
196
    /**
197
     * @inheritdoc
198
     */
199
    public function incrementItemsByTags(array $tagNames, $step = 1)
200
    {
201
        $return = null;
202
        foreach ($tagNames as $tagName) {
203
            $result = $this->incrementItemsByTag($tagName, $step);
204
            if ($return !== false) {
205
                $return = $result;
206
            }
207
        }
208
209
        return $return;
210
    }
211
212
    /**
213
     * @inheritdoc
@@ 250-261 (lines=12) @@
247
    /**
248
     * @inheritdoc
249
     */
250
    public function decrementItemsByTags(array $tagNames, $step = 1)
251
    {
252
        $return = null;
253
        foreach ($tagNames as $tagName) {
254
            $result = $this->decrementItemsByTag($tagName, $step);
255
            if ($return !== false) {
256
                $return = $result;
257
            }
258
        }
259
260
        return $return;
261
    }
262
263
    /**
264
     * @inheritdoc
@@ 301-312 (lines=12) @@
298
    /**
299
     * @inheritdoc
300
     */
301
    public function appendItemsByTags(array $tagNames, $data)
302
    {
303
        $return = null;
304
        foreach ($tagNames as $tagName) {
305
            $result = $this->appendItemsByTag($tagName, $data);
306
            if ($return !== false) {
307
                $return = $result;
308
            }
309
        }
310
311
        return $return;
312
    }
313
314
    /**
315
     * @inheritdoc
@@ 352-363 (lines=12) @@
349
    /**
350
     * @inheritdoc
351
     */
352
    public function prependItemsByTags(array $tagNames, $data)
353
    {
354
        $return = null;
355
        foreach ($tagNames as $tagName) {
356
            $result = $this->decrementItemsByTag($tagName, $data);
357
            if ($return !== false) {
358
                $return = $result;
359
            }
360
        }
361
362
        return $return;
363
    }
364
365
    /**
366
     * @inheritdoc