Code Duplication    Length = 9-9 lines in 2 locations

src/Phinx/Db/Adapter/SqlServerAdapter.php 2 locations

@@ 715-723 (lines=9) @@
712
713
        foreach ($indexes as $indexName => $index) {
714
            $a = array_diff($columns, $index['columns']);
715
            if (empty($a)) {
716
                $instructions->addPostStep(sprintf(
717
                    'DROP INDEX %s ON %s',
718
                    $this->quoteColumnName($indexName),
719
                    $this->quoteTableName($tableName)
720
                ));
721
722
                return $instructions;
723
            }
724
        }
725
726
        throw new \InvalidArgumentException(sprintf(
@@ 741-749 (lines=9) @@
738
        $instructions = new AlterInstructions();
739
740
        foreach ($indexes as $name => $index) {
741
            if ($name === $indexName) {
742
                $instructions->addPostStep(sprintf(
743
                    'DROP INDEX %s ON %s',
744
                    $this->quoteColumnName($indexName),
745
                    $this->quoteTableName($tableName)
746
                ));
747
748
                return $instructions;
749
            }
750
        }
751
752
        throw new \InvalidArgumentException(sprintf(