Code Duplication    Length = 6-6 lines in 3 locations

src/database/Postgres.php 3 locations

@@ 616-621 (lines=6) @@
613
            return -1;
614
        }
615
616
        if ($comment != '' && $this->hasSharedComments()) {
617
            $status = $this->setComment('DATABASE', $database, '', $comment);
618
            if ($status != 0) {
619
                return -2;
620
            }
621
        }
622
623
        return 0;
624
    }
@@ 8418-8423 (lines=6) @@
8415
            return -1;
8416
        }
8417
8418
        if ($comment != '' && $this->hasSharedComments()) {
8419
            $status = $this->setComment('TABLESPACE', $spcname, '', $comment);
8420
            if ($status != 0) {
8421
                return -2;
8422
            }
8423
        }
8424
8425
        return 0;
8426
    }
@@ 8472-8477 (lines=6) @@
8469
        }
8470
8471
        // Set comment if it has changed
8472
        if (trim($comment) != '' && $this->hasSharedComments()) {
8473
            $status = $this->setComment('TABLESPACE', $spcname, '', $comment);
8474
            if ($status != 0) {
8475
                return -4;
8476
            }
8477
        }
8478
8479
        return $this->endTransaction();
8480
    }