Code Duplication    Length = 16-16 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Content/Location/Gateway/DoctrineDatabase.php 1 location

@@ 934-949 (lines=16) @@
931
     * @param mixed $contentId
932
     * @param mixed $versionNo
933
     */
934
    public function updateLocationsContentVersionNo($contentId, $versionNo)
935
    {
936
        $query = $this->handler->createUpdateQuery();
937
        $query->update(
938
            $this->handler->quoteTable('ezcontentobject_tree')
939
        )->set(
940
            $this->handler->quoteColumn('contentobject_version'),
941
            $query->bindValue($versionNo, null, \PDO::PARAM_INT)
942
        )->where(
943
            $query->expr->eq(
944
                $this->handler->quoteColumn('contentobject_id'),
945
                $contentId
946
            )
947
        );
948
        $query->prepare()->execute();
949
    }
950
951
    /**
952
     * Searches for the main nodeId of $contentId in $versionId.

eZ/Publish/Core/Persistence/Legacy/Content/Section/Gateway/DoctrineDatabase.php 1 location

@@ 129-144 (lines=16) @@
126
     *
127
     * @return string[][]
128
     */
129
    public function loadAllSectionData()
130
    {
131
        $query = $this->dbHandler->createSelectQuery();
132
        $query->select(
133
            $this->dbHandler->quoteColumn('id'),
134
            $this->dbHandler->quoteColumn('identifier'),
135
            $this->dbHandler->quoteColumn('name')
136
        )->from(
137
            $this->dbHandler->quoteTable('ezsection')
138
        );
139
140
        $statement = $query->prepare();
141
        $statement->execute();
142
143
        return $statement->fetchAll(\PDO::FETCH_ASSOC);
144
    }
145
146
    /**
147
     * Loads data for section with $identifier.