Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 768-776 (lines=9) @@
765
766
        foreach ($indexes as $indexName => $index) {
767
            $a = array_diff($columns, $index['columns']);
768
            if (empty($a)) {
769
                $instructions->addPostStep(sprintf(
770
                    'DROP INDEX %s ON %s',
771
                    $this->quoteColumnName($indexName),
772
                    $this->quoteTableName($tableName)
773
                ));
774
775
                return $instructions;
776
            }
777
        }
778
779
        throw new \InvalidArgumentException(sprintf(
@@ 794-802 (lines=9) @@
791
        $instructions = new AlterInstructions();
792
793
        foreach ($indexes as $name => $index) {
794
            if ($name === $indexName) {
795
                $instructions->addPostStep(sprintf(
796
                    'DROP INDEX %s ON %s',
797
                    $this->quoteColumnName($indexName),
798
                    $this->quoteTableName($tableName)
799
                ));
800
801
                return $instructions;
802
            }
803
        }
804
805
        throw new \InvalidArgumentException(sprintf(