Code Duplication    Length = 17-17 lines in 2 locations

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

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