Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 93-98 (lines=6) @@
90
91
        // Cache pool
92
        $cacheItem = $this->cache->getItem($keyPrefix . $id);
93
        if ($cacheItem->isHit()) {
94
            $this->logger->logCacheHit([$id], 3);
95
            $this->inMemory->setMulti([$object = $cacheItem->get()], $cacheIndexes);
96
97
            return $object;
98
        }
99
100
        // Backend
101
        $object = $backendLoader($id);
@@ 143-148 (lines=6) @@
140
141
        // Cache pool
142
        $cacheItem = $this->cache->getItem($key);
143
        if ($cacheItem->isHit()) {
144
            $this->logger->logCacheHit([], 3);
145
            $this->inMemory->setMulti([$objects = $cacheItem->get()], $cacheIndexes, $key);
146
147
            return $objects;
148
        }
149
150
        // Backend
151
        $objects = $backendLoader();