Code Duplication    Length = 14-14 lines in 2 locations

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

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