Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 2055-2062 (lines=8) @@
2052
        $tableName = $diff->getName($this)->getQuotedName($this);
2053
2054
        $sql = [];
2055
        if ($this->supportsForeignKeyConstraints()) {
2056
            foreach ($diff->removedForeignKeys as $foreignKey) {
2057
                $sql[] = $this->getDropForeignKeySQL($foreignKey, $tableName);
2058
            }
2059
            foreach ($diff->changedForeignKeys as $foreignKey) {
2060
                $sql[] = $this->getDropForeignKeySQL($foreignKey, $tableName);
2061
            }
2062
        }
2063
2064
        foreach ($diff->removedIndexes as $index) {
2065
            $sql[] = $this->getDropIndexSQL($index, $tableName);
@@ 2092-2100 (lines=9) @@
2089
2090
        $sql = [];
2091
2092
        if ($this->supportsForeignKeyConstraints()) {
2093
            foreach ($diff->addedForeignKeys as $foreignKey) {
2094
                $sql[] = $this->getCreateForeignKeySQL($foreignKey, $tableName);
2095
            }
2096
2097
            foreach ($diff->changedForeignKeys as $foreignKey) {
2098
                $sql[] = $this->getCreateForeignKeySQL($foreignKey, $tableName);
2099
            }
2100
        }
2101
2102
        foreach ($diff->addedIndexes as $index) {
2103
            $sql[] = $this->getCreateIndexSQL($index, $tableName);