Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 98-103 (lines=6) @@
95
96
        // Cache pool
97
        $cacheItem = $this->cache->getItem($key);
98
        if ($cacheItem->isHit()) {
99
            $this->logger->logCacheHit([$id], 3);
100
            $this->inMemory->setMulti([$object = $cacheItem->get()], $cacheIndexes);
101
102
            return $object;
103
        }
104
105
        // Backend
106
        $object = $backendLoader($id);
@@ 150-155 (lines=6) @@
147
148
        // Cache pool
149
        $cacheItem = $this->cache->getItem($key);
150
        if ($cacheItem->isHit()) {
151
            $this->logger->logCacheHit($arguments, 3);
152
            $this->inMemory->setMulti($objects = $cacheItem->get(), $cacheIndexes, $key);
153
154
            return $objects;
155
        }
156
157
        // Backend
158
        $objects = $backendLoader();