Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 143-154 (lines=12) @@
140
    /**
141
     * {@inheritdoc}
142
     */
143
    public function loadContentInfo($contentId)
144
    {
145
        return $this->getCacheValue(
146
            $contentId,
147
            'ez-content-info-',
148
            function ($contentId) {
149
                return $this->persistenceHandler->contentHandler()->loadContentInfo($contentId);
150
            },
151
            $this->getContentInfoTags,
152
            $this->getContentInfoKeys
153
        );
154
    }
155
156
    public function loadContentInfoList(array $contentIds)
157
    {
@@ 172-183 (lines=12) @@
169
    /**
170
     * {@inheritdoc}
171
     */
172
    public function loadContentInfoByRemoteId($remoteId)
173
    {
174
        return $this->getCacheValue(
175
            $remoteId,
176
            'ez-content-info-byRemoteId-',
177
            function ($remoteId) {
178
                return $this->persistenceHandler->contentHandler()->loadContentInfoByRemoteId($remoteId);
179
            },
180
            $this->getContentInfoTags,
181
            $this->getContentInfoKeys
182
        );
183
    }
184
185
    /**
186
     * {@inheritdoc}