Code Duplication    Length = 6-6 lines in 2 locations

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

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