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

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