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

@@ 410-420 (lines=11) @@
407
    /**
408
     * {@inheritdoc}
409
     */
410
    protected function getAddColumnInstructions(Table $table, Column $column)
411
    {
412
        $alter = sprintf(
413
            'ALTER TABLE %s ADD COLUMN %s %s',
414
            $this->quoteTableName($table->getName()),
415
            $this->quoteColumnName($column->getName()),
416
            $this->getColumnSqlDefinition($column)
417
        );
418
419
        return new AlterInstructions([], [$alter]);
420
    }
421
422
    /**
423
     * Returns the original CREATE statement for the give table