Code Duplication    Length = 6-6 lines in 2 locations

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

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