Code Duplication    Length = 10-11 lines in 2 locations

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

@@ 317-326 (lines=10) @@
314
    /**
315
     * {@inheritdoc}
316
     */
317
    protected function getAddColumnInstructions(Table $table, Column $column)
318
    {
319
        $alter = sprintf(
320
            'ADD COLUMN %s %s',
321
            $this->quoteColumnName($column->getName()),
322
            $this->getColumnSqlDefinition($column)
323
        );
324
325
        return new AlterInstructions([$alter]);
326
    }
327
328
    /**
329
     * Returns the original CREATE statement for the give table

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

@@ 432-442 (lines=11) @@
429
    /**
430
     * {@inheritdoc}
431
     */
432
    protected function getAddColumnInstructions(Table $table, Column $column)
433
    {
434
        $alter = sprintf(
435
            'ALTER TABLE %s ADD %s %s',
436
            $table->getName(),
437
            $this->quoteColumnName($column->getName()),
438
            $this->getColumnSqlDefinition($column)
439
        );
440
441
        return new AlterInstructions([], [$alter]);
442
    }
443
444
    /**
445
     * {@inheritdoc}