Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Table.php 2 locations

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