Code Duplication    Length = 13-13 lines in 2 locations

eZ/Publish/Core/Persistence/Cache/Adapter/TransactionalCacheAdapterDecorator.php 2 locations

@@ 90-102 (lines=13) @@
87
    /**
88
     * {@inheritdoc}
89
     */
90
    public function deleteItems(array $keys)
91
    {
92
        if ($this->transactionDepth > 0) {
93
            $this->deferredItemsDeletion[$this->transactionDepth] = array_merge(
94
                $this->deferredItemsDeletion[$this->transactionDepth],
95
                $keys
96
            );
97
98
            return true;
99
        }
100
101
        return $this->innerPool->deleteItems($keys);
102
    }
103
104
    /**
105
     * {@inheritdoc}
@@ 107-119 (lines=13) @@
104
    /**
105
     * {@inheritdoc}
106
     */
107
    public function invalidateTags(array $tags)
108
    {
109
        if ($this->transactionDepth > 0) {
110
            $this->deferredTagsInvalidation[$this->transactionDepth] = array_merge(
111
                $this->deferredTagsInvalidation[$this->transactionDepth],
112
                $tags
113
            );
114
115
            return true;
116
        }
117
118
        return $this->innerPool->invalidateTags($tags);
119
    }
120
121
    /**
122
     * {@inheritdoc}