Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 84-88 (lines=5) @@
81
    ) {
82
        $key = $keyPrefix . $id . $keySuffix;
83
        // In-memory
84
        if ($object = $this->inMemory->get($key)) {
85
            $this->logger->logCacheHit($arguments ?: [$id], 3, true);
86
87
            return $object;
88
        }
89
90
        // Cache pool
91
        $cacheItem = $this->cache->getItem($key);
@@ 138-142 (lines=5) @@
135
        array $arguments = []
136
    ) {
137
        // In-memory
138
        if ($objects = $this->inMemory->get($key)) {
139
            $this->logger->logCacheHit($arguments, 3, true);
140
141
            return $objects;
142
        }
143
144
        // Cache pool
145
        $cacheItem = $this->cache->getItem($key);