Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 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.
@@ 102-111 (lines=10) @@
99
     * @param mixed $parentId
100
     * @param string $textMD5
101
     */
102
    public function cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5)
103
    {
104
        try {
105
            $this->innerGateway->cleanupAfterPublish($action, $languageId, $newId, $parentId, $textMD5);
106
        } catch (DBALException $e) {
107
            throw new \RuntimeException('Database error', 0, $e);
108
        } catch (PDOException $e) {
109
            throw new \RuntimeException('Database error', 0, $e);
110
        }
111
    }
112
113
    public function historizeBeforeSwap($action, $languageMask)
114
    {