Code Duplication    Length = 5-5 lines in 2 locations

src/Phinx/Db/Adapter/MysqlAdapter.php 2 locations

@@ 253-257 (lines=5) @@
250
        }
251
252
        // process table collation
253
        if (isset($options['collation'])) {
254
            $charset = explode('_', $options['collation']);
255
            $optionsStr .= sprintf(' CHARACTER SET %s', $charset[0]);
256
            $optionsStr .= sprintf(' COLLATE %s', $options['collation']);
257
        }
258
259
        // set the table comment
260
        if (isset($options['comment'])) {
@@ 377-381 (lines=5) @@
374
            $optionsStr = sprintf('ENGINE = %s', $newOptions['engine']);
375
        }
376
        // process table collation
377
        if (isset($newOptions['collation'])) {
378
            $charset = explode('_', $newOptions['collation']);
379
            $optionsStr .= sprintf(' CHARACTER SET %s', $charset[0]);
380
            $optionsStr .= sprintf(' COLLATE %s', $newOptions['collation']);
381
        }
382
        // set the table comment
383
        if (array_key_exists('comment', $newOptions)) {
384
            // passing 'null' is to remove table comment