Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 87-98 (lines=12) @@
84
    /**
85
     * {@inheritdoc}
86
     */
87
    public function loadList(array $ids): iterable
88
    {
89
        return $this->getMultipleCacheValues(
90
            $ids,
91
            'ez-language-',
92
            function (array $ids) {
93
                return $this->persistenceHandler->contentLanguageHandler()->loadList($ids);
94
            },
95
            $this->getTags,
96
            $this->getKeys
97
        );
98
    }
99
100
    /**
101
     * {@inheritdoc}
@@ 119-130 (lines=12) @@
116
    /**
117
     * {@inheritdoc}
118
     */
119
    public function loadListByLanguageCodes(array $languageCodes): iterable
120
    {
121
        return $this->getMultipleCacheValues(
122
            $languageCodes,
123
            'ez-language-code-',
124
            function (array $languageCodes) {
125
                return $this->persistenceHandler->contentLanguageHandler()->loadListByLanguageCodes($languageCodes);
126
            },
127
            $this->getTags,
128
            $this->getKeys
129
        );
130
    }
131
132
    /**
133
     * {@inheritdoc}