Code Duplication    Length = 8-9 lines in 2 locations

src/database/databasetraits/DatabaseTrait.php 1 location

@@ 304-312 (lines=9) @@
301
            return -1;
302
        }
303
304
        if ($dbName != $newName) {
305
            $status = $this->alterDatabaseRename($dbName, $newName);
306
            if ($status != 0) {
307
                $this->rollbackTransaction();
308
309
                return -3;
310
            }
311
            $dbName = $newName;
312
        }
313
314
        if ($newOwner != '') {
315
            $status = $this->alterDatabaseOwner($newName, $newOwner);

src/database/Postgres81.php 1 location

@@ 126-133 (lines=8) @@
123
            return -1;
124
        }
125
126
        if ($dbName != $newName) {
127
            $status = $this->alterDatabaseRename($dbName, $newName);
128
            if ($status != 0) {
129
                $this->rollbackTransaction();
130
131
                return -3;
132
            }
133
        }
134
135
        $status = $this->alterDatabaseOwner($newName, $newOwner);
136
        if ($status != 0) {