Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Table.php 2 locations

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