Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 483-493 (lines=11) @@
480
    /**
481
     * {@inheritdoc}
482
     */
483
    protected function getAddColumnInstructions(Table $table, Column $column)
484
    {
485
        $alter = sprintf(
486
            'ALTER TABLE %s ADD %s %s',
487
            $table->getName(),
488
            $this->quoteColumnName($column->getName()),
489
            $this->getColumnSqlDefinition($column)
490
        );
491
492
        return new AlterInstructions([], [$alter]);
493
    }
494
495
    /**
496
     * {@inheritdoc}

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

@@ 593-603 (lines=11) @@
590
    /**
591
     * {@inheritdoc}
592
     */
593
    protected function getAddColumnInstructions(Table $table, Column $column)
594
    {
595
        $alter = sprintf(
596
            'ALTER TABLE %s ADD COLUMN %s %s',
597
            $this->quoteTableName($table->getName()),
598
            $this->quoteColumnName($column->getName()),
599
            $this->getColumnSqlDefinition($column)
600
        );
601
602
        return new AlterInstructions([], [$alter]);
603
    }
604
605
    /**
606
     * Returns the original CREATE statement for the give table