Code Duplication    Length = 13-13 lines in 2 locations

lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 location

@@ 865-877 (lines=13) @@
862
863
        $tableSql = array();
864
865
        if ( ! $this->onSchemaAlterTable($diff, $tableSql)) {
866
            $sql = array_merge($sql, $commentsSQL);
867
868
            if ($diff->newName !== false) {
869
                $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' RENAME TO ' . $diff->getNewName()->getQuotedName($this);
870
            }
871
872
            $sql = array_merge(
873
                $this->getPreAlterTableIndexForeignKeySQL($diff),
874
                $sql,
875
                $this->getPostAlterTableIndexForeignKeySQL($diff)
876
            );
877
        }
878
879
        return array_merge($sql, $tableSql, $columnSql);
880
    }

lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location

@@ 608-620 (lines=13) @@
605
606
        $tableSql = array();
607
608
        if ( ! $this->onSchemaAlterTable($diff, $tableSql)) {
609
            $sql = array_merge($sql, $commentsSQL);
610
611
            if ($diff->newName !== false) {
612
                $sql[] = 'ALTER TABLE ' . $diff->getName($this)->getQuotedName($this) . ' RENAME TO ' . $diff->getNewName()->getQuotedName($this);
613
            }
614
615
            $sql = array_merge(
616
                $this->getPreAlterTableIndexForeignKeySQL($diff),
617
                $sql,
618
                $this->getPostAlterTableIndexForeignKeySQL($diff)
619
            );
620
        }
621
622
        return array_merge($sql, $tableSql, $columnSql);
623
    }