Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 790-798 (lines=9) @@
787
788
        foreach ($indexes as $indexName => $index) {
789
            $a = array_diff($columns, $index['columns']);
790
            if (empty($a)) {
791
                $instructions->addPostStep(sprintf(
792
                    'DROP INDEX %s ON %s',
793
                    $this->quoteColumnName($indexName),
794
                    $this->quoteTableName($tableName)
795
                ));
796
797
                return $instructions;
798
            }
799
        }
800
801
        throw new \InvalidArgumentException(sprintf(
@@ 816-824 (lines=9) @@
813
        $instructions = new AlterInstructions();
814
815
        foreach ($indexes as $name => $index) {
816
            if ($name === $indexName) {
817
                $instructions->addPostStep(sprintf(
818
                    'DROP INDEX %s ON %s',
819
                    $this->quoteColumnName($indexName),
820
                    $this->quoteTableName($tableName)
821
                ));
822
823
                return $instructions;
824
            }
825
        }
826
827
        throw new \InvalidArgumentException(sprintf(