Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Table.php 2 locations

@@ 273-277 (lines=5) @@
270
     */
271
    public function addColumn($columnName, $type = null, $options = [])
272
    {
273
        if ($columnName instanceof Column) {
274
            $action = new AddColumn($this->table, $columnName);
275
        } else {
276
            $action = AddColumn::build($this->table, $columnName, $type, $options);
277
        }
278
279
        // Delegate to Adapters to check column type
280
        if (!$this->getAdapter()->isValidColumnType($action->getColumn())) {
@@ 332-336 (lines=5) @@
329
     */
330
    public function changeColumn($columnName, $newColumnType, array $options = [])
331
    {
332
        if ($newColumnType instanceof Column) {
333
            $action = new ChangeColumn($this->table, $columnName, $newColumnType);
334
        } else {
335
            $action = ChangeColumn::build($this->table, $columnName, $newColumnType, $options);
336
        }
337
        $this->actions->addAction($action);
338
339
        return $this;