Code Duplication    Length = 10-11 lines in 2 locations

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

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

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

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