Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 210-214 (lines=5) @@
207
    public function loadVersionInfo($contentId, $versionNo)
208
    {
209
        $cacheItem = $this->cache->getItem("ez-content-version-info-${contentId}-${versionNo}");
210
        if ($cacheItem->isHit()) {
211
            $this->logger->logCacheHit(['content' => $contentId, 'version' => $versionNo]);
212
213
            return $cacheItem->get();
214
        }
215
216
        $this->logger->logCacheMiss(['content' => $contentId, 'version' => $versionNo]);
217
        $versionInfo = $this->persistenceHandler->contentHandler()->loadVersionInfo($contentId, $versionNo);
@@ 346-350 (lines=5) @@
343
    public function listVersions($contentId, $status = null, $limit = -1)
344
    {
345
        $cacheItem = $this->cache->getItem("ez-content-${contentId}-version-list" . ($status ? "-byStatus-${status}" : '') . "-limit-{$limit}");
346
        if ($cacheItem->isHit()) {
347
            $this->logger->logCacheHit(['content' => $contentId, 'status' => $status]);
348
349
            return $cacheItem->get();
350
        }
351
352
        $this->logger->logCacheMiss(['content' => $contentId, 'status' => $status]);
353
        $versions = $this->persistenceHandler->contentHandler()->listVersions($contentId, $status, $limit);