Code Duplication    Length = 8-9 lines in 2 locations

lib/Doctrine/DBAL/Platforms/AbstractPlatform.php 2 locations

@@ 2065-2072 (lines=8) @@
2062
        $tableName = $diff->getName($this)->getQuotedName($this);
2063
2064
        $sql = array();
2065
        if ($this->supportsForeignKeyConstraints()) {
2066
            foreach ($diff->removedForeignKeys as $foreignKey) {
2067
                $sql[] = $this->getDropForeignKeySQL($foreignKey, $tableName);
2068
            }
2069
            foreach ($diff->changedForeignKeys as $foreignKey) {
2070
                $sql[] = $this->getDropForeignKeySQL($foreignKey, $tableName);
2071
            }
2072
        }
2073
2074
        foreach ($diff->removedIndexes as $index) {
2075
            $sql[] = $this->getDropIndexSQL($index, $tableName);
@@ 2097-2105 (lines=9) @@
2094
2095
        $sql = array();
2096
2097
        if ($this->supportsForeignKeyConstraints()) {
2098
            foreach ($diff->addedForeignKeys as $foreignKey) {
2099
                $sql[] = $this->getCreateForeignKeySQL($foreignKey, $tableName);
2100
            }
2101
2102
            foreach ($diff->changedForeignKeys as $foreignKey) {
2103
                $sql[] = $this->getCreateForeignKeySQL($foreignKey, $tableName);
2104
            }
2105
        }
2106
2107
        foreach ($diff->addedIndexes as $index) {
2108
            $sql[] = $this->getCreateIndexSQL($index, $tableName);