Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Table.php 2 locations

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