Code Duplication    Length = 17-17 lines in 2 locations

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

@@ 1929-1945 (lines=17) @@
1926
     * @param int $contentId
1927
     * @param string $languageCode
1928
     */
1929
    private function deleteTranslationFromContentAttributes($contentId, $languageCode)
1930
    {
1931
        $query = $this->connection->createQueryBuilder();
1932
        $query
1933
            ->delete('ezcontentobject_attribute')
1934
            ->where('contentobject_id = :contentId')
1935
            ->andWhere('language_code = :languageCode')
1936
            ->setParameters(
1937
                [
1938
                    ':contentId' => $contentId,
1939
                    ':languageCode' => $languageCode,
1940
                ]
1941
            )
1942
        ;
1943
1944
        $query->execute();
1945
    }
1946
1947
    /**
1948
     * Delete translation from the ezcontentobject_name table.
@@ 1953-1969 (lines=17) @@
1950
     * @param $contentId
1951
     * @param $languageCode
1952
     */
1953
    private function deleteTranslationFromContentNames($contentId, $languageCode)
1954
    {
1955
        $query = $this->connection->createQueryBuilder();
1956
        $query
1957
            ->delete('ezcontentobject_name')
1958
            ->where('contentobject_id=:contentId')
1959
            ->andWhere('real_translation=:languageCode')
1960
            ->setParameters(
1961
                [
1962
                    ':languageCode' => $languageCode,
1963
                    ':contentId' => $contentId,
1964
                ]
1965
            )
1966
        ;
1967
1968
        $query->execute();
1969
    }
1970
1971
    /**
1972
     * Remove language from language_mask of ezcontentobject.