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
     * Marks all entries with given $id as history entries.
@@ 153-162 (lines=10) @@
150
     * @param string $textMD5
151
     * @param array $values associative array with column names as keys and column values as values
152
     */
153
    public function updateRow($parentId, $textMD5, array $values)
154
    {
155
        try {
156
            $this->innerGateway->updateRow($parentId, $textMD5, $values);
157
        } catch (DBALException $e) {
158
            throw new \RuntimeException('Database error', 0, $e);
159
        } catch (PDOException $e) {
160
            throw new \RuntimeException('Database error', 0, $e);
161
        }
162
    }
163
164
    /**
165
     * Inserts new row in urlalias_ml table.