Code Duplication    Length = 6-6 lines in 2 locations

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

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