Code Duplication    Length = 9-9 lines in 2 locations

src/Phinx/Db/Action/AddColumn.php 1 location

@@ 61-69 (lines=9) @@
58
     * @param mixed $options The column options
59
     * @return AddColumn
60
     */
61
    public static function build(Table $table, $columnName, $type = null, $options = [])
62
    {
63
        $column = new Column();
64
        $column->setName($columnName);
65
        $column->setType($type);
66
        $column->setOptions($options); // map options to column methods
67
68
        return new static($table, $column);
69
    }
70
71
    /**
72
     * Returns the column to be added

src/Phinx/Db/Action/ChangeColumn.php 1 location

@@ 75-83 (lines=9) @@
72
     * @param mixed $options Addiotional options for the column
73
     * @return ChangeColumn
74
     */
75
    public static function build(Table $table, $columnName, $type = null, $options = [])
76
    {
77
        $column = new Column();
78
        $column->setName($columnName);
79
        $column->setType($type);
80
        $column->setOptions($options); // map options to column methods
81
82
        return new static($table, $columnName, $column);
83
    }
84
85
    /**
86
     * Returns the name of the column to change