Code Duplication    Length = 9-9 lines in 2 locations

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

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