Code Duplication    Length = 13-13 lines in 2 locations

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 location

@@ 877-889 (lines=13) @@
874
875
        $tableSql = [];
876
877
        if ( ! $this->onSchemaAlterTable($diff, $tableSql)) {
878
            $sql = array_merge($sql, $commentsSQL);
879
880
            if ($diff->newName !== false) {
881
                $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' RENAME TO ' . $diff->getNewName()->getQuotedName($this);
882
            }
883
884
            $sql = array_merge(
885
                $this->getPreAlterTableIndexForeignKeySQL($diff),
886
                $sql,
887
                $this->getPostAlterTableIndexForeignKeySQL($diff)
888
            );
889
        }
890
891
        return array_merge($sql, $tableSql, $columnSql);
892
    }

core/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location

@@ 621-633 (lines=13) @@
618
619
        $tableSql = [];
620
621
        if ( ! $this->onSchemaAlterTable($diff, $tableSql)) {
622
            $sql = array_merge($sql, $commentsSQL);
623
624
            if ($diff->newName !== false) {
625
                $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' RENAME TO ' . $diff->getNewName()->getQuotedName($this);
626
            }
627
628
            $sql = array_merge(
629
                $this->getPreAlterTableIndexForeignKeySQL($diff),
630
                $sql,
631
                $this->getPostAlterTableIndexForeignKeySQL($diff)
632
            );
633
        }
634
635
        return array_merge($sql, $tableSql, $columnSql);
636
    }