Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 93-102 (lines=10) @@
90
     * @param mixed $parentId
91
     * @param string $textMD5
92
     */
93
    public function cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5)
94
    {
95
        try {
96
            $this->innerGateway->cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5);
97
        } catch (DBALException $e) {
98
            throw new \RuntimeException('Database error', 0, $e);
99
        } catch (PDOException $e) {
100
            throw new \RuntimeException('Database error', 0, $e);
101
        }
102
    }
103
104
    /**
105
     * Swaps the content being referred to by two aliases.
@@ 172-181 (lines=10) @@
169
     * @param string $textMD5
170
     * @param array $values associative array with column names as keys and column values as values
171
     */
172
    public function updateRow($parentId, $textMD5, array $values)
173
    {
174
        try {
175
            $this->innerGateway->updateRow($parentId, $textMD5, $values);
176
        } catch (DBALException $e) {
177
            throw new \RuntimeException('Database error', 0, $e);
178
        } catch (PDOException $e) {
179
            throw new \RuntimeException('Database error', 0, $e);
180
        }
181
    }
182
183
    /**
184
     * Inserts new row in urlalias_ml table.