Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Table.php 2 locations

@@ 255-259 (lines=5) @@
252
     */
253
    public function addColumn($columnName, $type = null, $options = [])
254
    {
255
        if ($columnName instanceof Column) {
256
            $action = new AddColumn($this->table, $columnName);
257
        } else {
258
            $action = AddColumn::build($this->table, $columnName, $type, $options);
259
        }
260
261
        // Delegate to Adapters to check column type
262
        if (!$this->getAdapter()->isValidColumnType($action->getColumn())) {
@@ 314-318 (lines=5) @@
311
     */
312
    public function changeColumn($columnName, $newColumnType, array $options = [])
313
    {
314
        if ($newColumnType instanceof Column) {
315
            $action = new ChangeColumn($this->table, $columnName, $newColumnType);
316
        } else {
317
            $action = ChangeColumn::build($this->table, $columnName, $newColumnType, $options);
318
        }
319
        $this->actions->addAction($action);
320
321
        return $this;