Code Duplication    Length = 17-17 lines in 2 locations

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

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