Code Duplication    Length = 14-15 lines in 2 locations

src/Phinx/Db/Adapter/MysqlAdapter.php 2 locations

@@ 396-410 (lines=15) @@
393
    /**
394
     * {@inheritdoc}
395
     */
396
    public function addColumn(Table $table, Column $column)
397
    {
398
        $sql = sprintf(
399
            'ALTER TABLE %s ADD %s %s',
400
            $this->quoteTableName($table->getName()),
401
            $this->quoteColumnName($column->getName()),
402
            $this->getColumnSqlDefinition($column)
403
        );
404
405
        if ($column->getAfter()) {
406
            $sql .= ' AFTER ' . $this->quoteColumnName($column->getAfter());
407
        }
408
409
        $this->execute($sql);
410
    }
411
412
    /**
413
     * {@inheritdoc}
@@ 449-462 (lines=14) @@
446
    /**
447
     * {@inheritdoc}
448
     */
449
    public function changeColumn($tableName, $columnName, Column $newColumn)
450
    {
451
        $after = $newColumn->getAfter() ? ' AFTER ' . $this->quoteColumnName($newColumn->getAfter()) : '';
452
        $this->execute(
453
            sprintf(
454
                'ALTER TABLE %s CHANGE %s %s %s%s',
455
                $this->quoteTableName($tableName),
456
                $this->quoteColumnName($columnName),
457
                $this->quoteColumnName($newColumn->getName()),
458
                $this->getColumnSqlDefinition($newColumn),
459
                $after
460
            )
461
        );
462
    }
463
464
    /**
465
     * {@inheritdoc}