Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 74-86 (lines=13) @@
71
    /**
72
     * {@inheritdoc}
73
     */
74
    public function getBasicNodeData($nodeId, array $translations = null, bool $useAlwaysAvailable = true)
75
    {
76
        $q = $this->createNodeQueryBuilder($translations, $useAlwaysAvailable);
77
        $q->where(
78
            $q->expr()->eq('t.node_id', $q->createNamedParameter($nodeId, PDO::PARAM_INT))
79
        );
80
81
        if ($row = $q->execute()->fetch(FetchMode::ASSOCIATIVE)) {
82
            return $row;
83
        }
84
85
        throw new NotFound('location', $nodeId);
86
    }
87
88
    /**
89
     * {@inheritdoc}
@@ 91-103 (lines=13) @@
88
    /**
89
     * {@inheritdoc}
90
     */
91
    public function getBasicNodeDataByRemoteId($remoteId, array $translations = null, bool $useAlwaysAvailable = true)
92
    {
93
        $q = $this->createNodeQueryBuilder($translations, $useAlwaysAvailable);
94
        $q->where(
95
            $q->expr()->eq('t.remote_id', $q->createNamedParameter($remoteId, PDO::PARAM_STR))
96
        );
97
98
        if ($row = $q->execute()->fetch(FetchMode::ASSOCIATIVE)) {
99
            return $row;
100
        }
101
102
        throw new NotFound('location', $remoteId);
103
    }
104
105
    /**
106
     * Loads data for all Locations for $contentId, optionally only in the