Code Duplication    Length = 17-17 lines in 2 locations

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

@@ 1971-1987 (lines=17) @@
1968
     * @param int $contentId
1969
     * @param string $languageCode
1970
     */
1971
    private function deleteTranslationFromContentAttributes($contentId, $languageCode)
1972
    {
1973
        $query = $this->connection->createQueryBuilder();
1974
        $query
1975
            ->delete('ezcontentobject_attribute')
1976
            ->where('contentobject_id = :contentId')
1977
            ->andWhere('language_code = :languageCode')
1978
            ->setParameters(
1979
                [
1980
                    ':contentId' => $contentId,
1981
                    ':languageCode' => $languageCode,
1982
                ]
1983
            )
1984
        ;
1985
1986
        $query->execute();
1987
    }
1988
1989
    /**
1990
     * Delete translation from the ezcontentobject_name table.
@@ 1995-2011 (lines=17) @@
1992
     * @param $contentId
1993
     * @param $languageCode
1994
     */
1995
    private function deleteTranslationFromContentNames($contentId, $languageCode)
1996
    {
1997
        $query = $this->connection->createQueryBuilder();
1998
        $query
1999
            ->delete('ezcontentobject_name')
2000
            ->where('contentobject_id=:contentId')
2001
            ->andWhere('real_translation=:languageCode')
2002
            ->setParameters(
2003
                [
2004
                    ':languageCode' => $languageCode,
2005
                    ':contentId' => $contentId,
2006
                ]
2007
            )
2008
        ;
2009
2010
        $query->execute();
2011
    }
2012
2013
    /**
2014
     * Remove language from language_mask of ezcontentobject.