Code Duplication    Length = 8-9 lines in 2 locations

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

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