Code Duplication    Length = 5-5 lines in 2 locations

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

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