Code Duplication    Length = 6-6 lines in 2 locations

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

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