Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Table.php 2 locations

@@ 267-271 (lines=5) @@
264
     */
265
    public function addColumn($columnName, $type = null, $options = [])
266
    {
267
        if ($columnName instanceof Column) {
268
            $action = new AddColumn($this->table, $columnName);
269
        } else {
270
            $action = AddColumn::build($this->table, $columnName, $type, $options);
271
        }
272
273
        // Delegate to Adapters to check column type
274
        if (!$this->getAdapter()->isValidColumnType($action->getColumn())) {
@@ 326-330 (lines=5) @@
323
     */
324
    public function changeColumn($columnName, $newColumnType, array $options = [])
325
    {
326
        if ($newColumnType instanceof Column) {
327
            $action = new ChangeColumn($this->table, $columnName, $newColumnType);
328
        } else {
329
            $action = ChangeColumn::build($this->table, $columnName, $newColumnType, $options);
330
        }
331
        $this->actions->addAction($action);
332
333
        return $this;