Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 108-113 (lines=6) @@
105
106
        // Cache pool
107
        $cacheItem = $this->cache->getItem($key);
108
        if ($cacheItem->isHit()) {
109
            $this->logger->logCacheHit([$id], 3);
110
            $this->inMemory->setMulti([$object = $cacheItem->get()], $cacheIndexes);
111
112
            return $object;
113
        }
114
115
        // Backend
116
        $object = $backendLoader($id);
@@ 160-165 (lines=6) @@
157
158
        // Cache pool
159
        $cacheItem = $this->cache->getItem($key);
160
        if ($cacheItem->isHit()) {
161
            $this->logger->logCacheHit($arguments, 3);
162
            $this->inMemory->setMulti($objects = $cacheItem->get(), $cacheIndexes, $key);
163
164
            return $objects;
165
        }
166
167
        // Backend
168
        $objects = $backendLoader();