Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Table.php 2 locations

@@ 248-252 (lines=5) @@
245
     */
246
    public function addColumn($columnName, $type = null, $options = [])
247
    {
248
        if ($columnName instanceof Column) {
249
            $action = new AddColumn($this->table, $columnName);
250
        } else {
251
            $action = AddColumn::build($this->table, $columnName, $type, $options);
252
        }
253
254
        // Delegate to Adapters to check column type
255
        if (!$this->getAdapter()->isValidColumnType($action->getColumn())) {
@@ 307-311 (lines=5) @@
304
     */
305
    public function changeColumn($columnName, $newColumnType, array $options = [])
306
    {
307
        if ($newColumnType instanceof Column) {
308
            $action = new ChangeColumn($this->table, $columnName, $newColumnType);
309
        } else {
310
            $action = ChangeColumn::build($this->table, $columnName, $newColumnType, $options);
311
        }
312
        $this->actions->addAction($action);
313
314
        return $this;