Code Duplication    Length = 9-9 lines in 2 locations

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

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

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

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