Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 104-113 (lines=10) @@
101
     * @param mixed $parentId
102
     * @param string $textMD5
103
     */
104
    public function cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5)
105
    {
106
        try {
107
            $this->innerGateway->cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5);
108
        } catch (DBALException $e) {
109
            throw new \RuntimeException('Database error', 0, $e);
110
        } catch (PDOException $e) {
111
            throw new \RuntimeException('Database error', 0, $e);
112
        }
113
    }
114
115
    public function historizeBeforeSwap($action, $languageMask)
116
    {
@@ 174-183 (lines=10) @@
171
     * @param string $textMD5
172
     * @param array $values associative array with column names as keys and column values as values
173
     */
174
    public function updateRow($parentId, $textMD5, array $values)
175
    {
176
        try {
177
            $this->innerGateway->updateRow($parentId, $textMD5, $values);
178
        } catch (DBALException $e) {
179
            throw new \RuntimeException('Database error', 0, $e);
180
        } catch (PDOException $e) {
181
            throw new \RuntimeException('Database error', 0, $e);
182
        }
183
    }
184
185
    /**
186
     * Inserts new row in urlalias_ml table.