Code Duplication    Length = 7-7 lines in 2 locations

src/Dialect/MysqlDialect.php 1 location

@@ 160-166 (lines=7) @@
157
     *
158
     * @return string
159
     */
160
    public function getColumnDefinition(array $column)
161
    {
162
        return $this->format(
163
            '{column|q} {type} {notnull}',
164
            array_merge($column, ['notnull' => $column['nullable'] ? 'NULL' : 'NOT NULL'])
165
        );
166
    }
167
168
    /**
169
     * @param array $key

src/Dialect/RedshiftDialect.php 1 location

@@ 197-203 (lines=7) @@
194
     *
195
     * @return string
196
     */
197
    public function getColumnDefinition(array $column)
198
    {
199
        return $this->format(
200
            '{column|q} {type}{notnull}',
201
            array_merge($column, ['notnull' => $column['nullable'] ? '' : ' NOT NULL'])
202
        );
203
    }
204
205
    /**
206
     * @param array $key