Code Duplication    Length = 10-11 lines in 2 locations

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}

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

@@ 335-344 (lines=10) @@
332
    /**
333
     * {@inheritdoc}
334
     */
335
    protected function getAddColumnInstructions(Table $table, Column $column)
336
    {
337
        $alter = sprintf(
338
            'ADD COLUMN %s %s',
339
            $this->quoteColumnName($column->getName()),
340
            $this->getColumnSqlDefinition($column)
341
        );
342
343
        return new AlterInstructions([$alter]);
344
    }
345
346
    /**
347
     * Returns the original CREATE statement for the give table