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);
@@ 2087-2095 (lines=9) @@
2084
2085
        $sql = [];
2086
2087
        if ($this->supportsForeignKeyConstraints()) {
2088
            foreach ($diff->addedForeignKeys as $foreignKey) {
2089
                $sql[] = $this->getCreateForeignKeySQL($foreignKey, $tableName);
2090
            }
2091
2092
            foreach ($diff->changedForeignKeys as $foreignKey) {
2093
                $sql[] = $this->getCreateForeignKeySQL($foreignKey, $tableName);
2094
            }
2095
        }
2096
2097
        foreach ($diff->addedIndexes as $index) {
2098
            $sql[] = $this->getCreateIndexSQL($index, $tableName);