Code Duplication    Length = 6-6 lines in 2 locations

eZ/Publish/Core/Persistence/Cache/AbstractInMemoryHandler.php 2 locations

@@ 118-123 (lines=6) @@
115
116
        // Cache pool
117
        $cacheItem = $this->cache->getItem($key);
118
        if ($cacheItem->isHit()) {
119
            $this->logger->logCacheHit([$id], 3);
120
            $this->inMemory->setMulti([$object = $cacheItem->get()], $cacheIndexes);
121
122
            return $object;
123
        }
124
125
        // Backend
126
        $object = $backendLoader($id);
@@ 170-175 (lines=6) @@
167
168
        // Cache pool
169
        $cacheItem = $this->cache->getItem($key);
170
        if ($cacheItem->isHit()) {
171
            $this->logger->logCacheHit($arguments, 3);
172
            $this->inMemory->setMulti($objects = $cacheItem->get(), $cacheIndexes, $key);
173
174
            return $objects;
175
        }
176
177
        // Backend
178
        $objects = $backendLoader();