Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 790-794 (lines=5) @@
787
        $sql = [];
788
        $tableName = $diff->getName($this)->getQuotedName($this);
789
790
        foreach ($this->getRemainingForeignKeyConstraintsRequiringRenamedIndexes($diff) as $foreignKey) {
791
            if (! in_array($foreignKey, $diff->changedForeignKeys, true)) {
792
                $sql[] = $this->getDropForeignKeySQL($foreignKey, $tableName);
793
            }
794
        }
795
796
        return $sql;
797
    }
@@ 858-862 (lines=5) @@
855
            ? $diff->getNewName()->getQuotedName($this)
856
            : $diff->getName($this)->getQuotedName($this);
857
858
        foreach ($this->getRemainingForeignKeyConstraintsRequiringRenamedIndexes($diff) as $foreignKey) {
859
            if (! in_array($foreignKey, $diff->changedForeignKeys, true)) {
860
                $sql[] = $this->getCreateForeignKeySQL($foreignKey, $tableName);
861
            }
862
        }
863
864
        return $sql;
865
    }