Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Table.php 2 locations

@@ 311-315 (lines=5) @@
308
     */
309
    public function addColumn($columnName, $type = null, $options = [])
310
    {
311
        if ($columnName instanceof Column) {
312
            $action = new AddColumn($this->table, $columnName);
313
        } else {
314
            $action = AddColumn::build($this->table, $columnName, $type, $options);
315
        }
316
317
        // Delegate to Adapters to check column type
318
        if (!$this->getAdapter()->isValidColumnType($action->getColumn())) {
@@ 370-374 (lines=5) @@
367
     */
368
    public function changeColumn($columnName, $newColumnType, array $options = [])
369
    {
370
        if ($newColumnType instanceof Column) {
371
            $action = new ChangeColumn($this->table, $columnName, $newColumnType);
372
        } else {
373
            $action = ChangeColumn::build($this->table, $columnName, $newColumnType, $options);
374
        }
375
        $this->actions->addAction($action);
376
377
        return $this;