Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 779-783 (lines=5) @@
776
        $sql = [];
777
        $tableName = $diff->getName($this)->getQuotedName($this);
778
779
        foreach ($this->getRemainingForeignKeyConstraintsRequiringRenamedIndexes($diff) as $foreignKey) {
780
            if (! in_array($foreignKey, $diff->changedForeignKeys, true)) {
781
                $sql[] = $this->getDropForeignKeySQL($foreignKey, $tableName);
782
            }
783
        }
784
785
        return $sql;
786
    }
@@ 847-851 (lines=5) @@
844
            ? $diff->getNewName()->getQuotedName($this)
845
            : $diff->getName($this)->getQuotedName($this);
846
847
        foreach ($this->getRemainingForeignKeyConstraintsRequiringRenamedIndexes($diff) as $foreignKey) {
848
            if (! in_array($foreignKey, $diff->changedForeignKeys, true)) {
849
                $sql[] = $this->getCreateForeignKeySQL($foreignKey, $tableName);
850
            }
851
        }
852
853
        return $sql;
854
    }