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
    /**
901
     * @inheritDoc
@@ 919-927 (lines=9) @@
916
     *
917
     * @return array
918
     */
919
    public function loadContentInfoByRemoteId($remoteId)
920
    {
921
        $results = $this->internalLoadContentInfo('remote_id', [$remoteId], Connection::PARAM_STR_ARRAY);
922
        if (empty($results)) {
923
            throw new NotFound('content', "remote_id: $remoteId");
924
        }
925
926
        return $results[0];
927
    }
928
929
    /**
930
     * Loads version info for content identified by $contentId and $versionNo.