Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 104-117 (lines=14) @@
101
    /**
102
     * {@inheritdoc}
103
     */
104
    public function deleteItem($key)
105
    {
106
        foreach ($this->inMemoryPools as $inMemory) {
107
            $inMemory->deleteMulti([$key]);
108
        }
109
110
        if ($this->transactionDepth > 0) {
111
            $this->deferredItemsDeletion[$key] = true;
112
113
            return true;
114
        }
115
116
        return $this->sharedPool->deleteItem($key);
117
    }
118
119
    /**
120
     * {@inheritdoc}
@@ 122-135 (lines=14) @@
119
    /**
120
     * {@inheritdoc}
121
     */
122
    public function deleteItems(array $keys)
123
    {
124
        foreach ($this->inMemoryPools as $inMemory) {
125
            $inMemory->deleteMulti($keys);
126
        }
127
128
        if ($this->transactionDepth > 0) {
129
            $this->deferredItemsDeletion += \array_fill_keys($keys, true);
130
131
            return true;
132
        }
133
134
        return $this->sharedPool->deleteItems($keys);
135
    }
136
137
    /**
138
     * {@inheritdoc}