Code Duplication    Length = 10-10 lines in 3 locations

eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/ExceptionConversion.php 3 locations

@@ 103-112 (lines=10) @@
100
     * @param mixed $parentId
101
     * @param string $textMD5
102
     */
103
    public function cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5)
104
    {
105
        try {
106
            $this->innerGateway->cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5);
107
        } catch (DBALException $e) {
108
            throw new \RuntimeException('Database error', 0, $e);
109
        } catch (PDOException $e) {
110
            throw new \RuntimeException('Database error', 0, $e);
111
        }
112
    }
113
114
    public function historizeBeforeSwap($action, $languageMask)
115
    {
@@ 173-182 (lines=10) @@
170
     * @param string $textMD5
171
     * @param array $values associative array with column names as keys and column values as values
172
     */
173
    public function updateRow($parentId, $textMD5, array $values)
174
    {
175
        try {
176
            $this->innerGateway->updateRow($parentId, $textMD5, $values);
177
        } catch (DBALException $e) {
178
            throw new \RuntimeException('Database error', 0, $e);
179
        } catch (PDOException $e) {
180
            throw new \RuntimeException('Database error', 0, $e);
181
        }
182
    }
183
184
    /**
185
     * Inserts new row in urlalias_ml table.
@@ 422-431 (lines=10) @@
419
    /**
420
     * {@inheritdoc}
421
     */
422
    public function archiveUrlAliasesForDeletedTranslations($locationId, $parentId, array $languageIds)
423
    {
424
        try {
425
            $this->innerGateway->archiveUrlAliasesForDeletedTranslations($locationId, $parentId, $languageIds);
426
        } catch (DBALException $e) {
427
            throw new \RuntimeException('Database error', 0, $e);
428
        } catch (PDOException $e) {
429
            throw new \RuntimeException('Database error', 0, $e);
430
        }
431
    }
432
}
433