Code Duplication    Length = 11-11 lines in 2 locations

src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location

@@ 491-501 (lines=11) @@
488
    /**
489
     * {@inheritdoc}
490
     */
491
    protected function getAddColumnInstructions(Table $table, Column $column)
492
    {
493
        $alter = sprintf(
494
            'ALTER TABLE %s ADD %s %s',
495
            $table->getName(),
496
            $this->quoteColumnName($column->getName()),
497
            $this->getColumnSqlDefinition($column)
498
        );
499
500
        return new AlterInstructions([], [$alter]);
501
    }
502
503
    /**
504
     * {@inheritdoc}

src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location

@@ 662-672 (lines=11) @@
659
    /**
660
     * {@inheritdoc}
661
     */
662
    protected function getAddColumnInstructions(Table $table, Column $column)
663
    {
664
        $alter = sprintf(
665
            'ALTER TABLE %s ADD COLUMN %s %s',
666
            $this->quoteTableName($table->getName()),
667
            $this->quoteColumnName($column->getName()),
668
            $this->getColumnSqlDefinition($column)
669
        );
670
671
        return new AlterInstructions([], [$alter]);
672
    }
673
674
    /**
675
     * Returns the original CREATE statement for the give table