Code Duplication    Length = 8-9 lines in 2 locations

src/database/Postgres.php 1 location

@@ 751-759 (lines=9) @@
748
            return -1;
749
        }
750
751
        if ($dbName != $newName) {
752
            $status = $this->alterDatabaseRename($dbName, $newName);
753
            if ($status != 0) {
754
                $this->rollbackTransaction();
755
756
                return -3;
757
            }
758
            $dbName = $newName;
759
        }
760
761
        if ($newOwner != '') {
762
            $status = $this->alterDatabaseOwner($newName, $newOwner);

src/database/Postgres81.php 1 location

@@ 115-122 (lines=8) @@
112
                return -1;
113
            }
114
115
            if ($dbName != $newName) {
116
                $status = $this->alterDatabaseRename($dbName, $newName);
117
                if ($status != 0) {
118
                    $this->rollbackTransaction();
119
120
                    return -3;
121
                }
122
            }
123
124
            $status = $this->alterDatabaseOwner($newName, $newOwner);
125
            if ($status != 0) {