Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Table.php 2 locations

@@ 301-305 (lines=5) @@
298
     */
299
    public function addColumn($columnName, $type = null, $options = [])
300
    {
301
        if ($columnName instanceof Column) {
302
            $action = new AddColumn($this->table, $columnName);
303
        } else {
304
            $action = AddColumn::build($this->table, $columnName, $type, $options);
305
        }
306
307
        // Delegate to Adapters to check column type
308
        if (!$this->getAdapter()->isValidColumnType($action->getColumn())) {
@@ 360-364 (lines=5) @@
357
     */
358
    public function changeColumn($columnName, $newColumnType, array $options = [])
359
    {
360
        if ($newColumnType instanceof Column) {
361
            $action = new ChangeColumn($this->table, $columnName, $newColumnType);
362
        } else {
363
            $action = ChangeColumn::build($this->table, $columnName, $newColumnType, $options);
364
        }
365
        $this->actions->addAction($action);
366
367
        return $this;