Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Table.php 2 locations

@@ 282-286 (lines=5) @@
279
     */
280
    public function addColumn($columnName, $type = null, $options = [])
281
    {
282
        if ($columnName instanceof Column) {
283
            $action = new AddColumn($this->table, $columnName);
284
        } else {
285
            $action = AddColumn::build($this->table, $columnName, $type, $options);
286
        }
287
288
        // Delegate to Adapters to check column type
289
        if (!$this->getAdapter()->isValidColumnType($action->getColumn())) {
@@ 341-345 (lines=5) @@
338
     */
339
    public function changeColumn($columnName, $newColumnType, array $options = [])
340
    {
341
        if ($newColumnType instanceof Column) {
342
            $action = new ChangeColumn($this->table, $columnName, $newColumnType);
343
        } else {
344
            $action = ChangeColumn::build($this->table, $columnName, $newColumnType, $options);
345
        }
346
        $this->actions->addAction($action);
347
348
        return $this;