Code Duplication    Length = 5-5 lines in 2 locations

eZ/Publish/Core/Persistence/Cache/AbstractHandler.php 1 location

@@ 84-88 (lines=5) @@
81
        // Generate unique cache keys
82
        $cacheKeys = [];
83
        $cacheKeysToIdMap = [];
84
        foreach (\array_unique($ids) as $id) {
85
            $key = $keyPrefix . $id . ($keySuffixes[$id] ?? '');
86
            $cacheKeys[] = $key;
87
            $cacheKeysToIdMap[$key] = $id;
88
        }
89
90
        // Load cache items by cache keys (will contain hits and misses)
91
        $list = [];

eZ/Publish/Core/Persistence/Cache/AbstractTrait.php 1 location

@@ 54-58 (lines=5) @@
51
        // Generate unique cache keys
52
        $cacheKeys = [];
53
         $cacheKeysToIdMap = [];
54
        foreach (\array_unique($ids) as $id) {
55
            $key = $keyPrefix . $id . $keySuffix;
56
            $cacheKeys[] = $key;
57
            $cacheKeysToIdMap[$key] = $id;
58
        }
59
60
        // Load cache items by cache keys (will contain hits and misses)
61
        $list = [];