Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 989-997 (lines=9) @@
986
     *
987
     * @return array
988
     */
989
    public function loadContentInfo($contentId)
990
    {
991
        $results = $this->internalLoadContentInfo('id', [$contentId]);
992
        if (empty($results)) {
993
            throw new NotFound('content', "id: $contentId");
994
        }
995
996
        return $results[0];
997
    }
998
999
    public function loadContentInfoList(array $contentIds)
1000
    {
@@ 1015-1023 (lines=9) @@
1012
     *
1013
     * @return array
1014
     */
1015
    public function loadContentInfoByRemoteId($remoteId)
1016
    {
1017
        $results = $this->internalLoadContentInfo('remote_id', [$remoteId], Connection::PARAM_STR_ARRAY);
1018
        if (empty($results)) {
1019
            throw new NotFound('content', "remote_id: $remoteId");
1020
        }
1021
1022
        return $results[0];
1023
    }
1024
1025
    /**
1026
     * Loads version info for content identified by $contentId and $versionNo.