Code Duplication    Length = 9-9 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Content/Gateway/DoctrineDatabase.php 2 locations

@@ 890-898 (lines=9) @@
887
     *
888
     * @return array
889
     */
890
    public function loadContentInfo($contentId)
891
    {
892
        $results = $this->internalLoadContentInfo('id', [$contentId]);
893
        if (empty($results)) {
894
            throw new NotFound('content', "id: $contentId");
895
        }
896
897
        return $results[0];
898
    }
899
900
    public function loadContentInfoList(array $contentIds)
901
    {
@@ 916-924 (lines=9) @@
913
     *
914
     * @return array
915
     */
916
    public function loadContentInfoByRemoteId($remoteId)
917
    {
918
        $results = $this->internalLoadContentInfo('remote_id', [$remoteId], Connection::PARAM_STR_ARRAY);
919
        if (empty($results)) {
920
            throw new NotFound('content', "remote_id: $remoteId");
921
        }
922
923
        return $results[0];
924
    }
925
926
    /**
927
     * Loads version info for content identified by $contentId and $versionNo.