Code Duplication    Length = 10-11 lines in 2 locations

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

@@ 396-405 (lines=10) @@
393
    /**
394
     * {@inheritdoc}
395
     */
396
    protected function getAddColumnInstructions(Table $table, Column $column)
397
    {
398
        $alter = sprintf(
399
            'ADD COLUMN %s %s',
400
            $this->quoteColumnName($column->getName()),
401
            $this->getColumnSqlDefinition($column)
402
        );
403
404
        return new AlterInstructions([$alter]);
405
    }
406
407
    /**
408
     * Returns the original CREATE statement for the give table

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

@@ 505-515 (lines=11) @@
502
    /**
503
     * {@inheritdoc}
504
     */
505
    protected function getAddColumnInstructions(Table $table, Column $column)
506
    {
507
        $alter = sprintf(
508
            'ALTER TABLE %s ADD %s %s',
509
            $table->getName(),
510
            $this->quoteColumnName($column->getName()),
511
            $this->getColumnSqlDefinition($column)
512
        );
513
514
        return new AlterInstructions([], [$alter]);
515
    }
516
517
    /**
518
     * {@inheritdoc}