Code Duplication    Length = 9-9 lines in 2 locations

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

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