Code Duplication    Length = 3-3 lines in 2 locations

src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location

@@ 981-983 (lines=3) @@
978
        if (($column->getLimit() || isset($sqlType['limit'])) && $limitable) {
979
            $def .= '(' . ($column->getLimit() ?: $sqlType['limit']) . ')';
980
        }
981
        if (($values = $column->getValues()) && is_array($values)) {
982
            $def .= " CHECK({$column->getName()} IN ('" . implode("', '", $values) . "'))";
983
        }
984
985
        $default = $column->getDefault();
986

src/Phinx/Db/Adapter/MysqlAdapter.php 1 location

@@ 1000-1002 (lines=3) @@
997
        } elseif (isset($sqlType['limit'])) {
998
            $def .= '(' . $sqlType['limit'] . ')';
999
        }
1000
        if (($values = $column->getValues()) && is_array($values)) {
1001
            $def .= "('" . implode("', '", $values) . "')";
1002
        }
1003
        $def .= $column->getEncoding() ? ' CHARACTER SET ' . $column->getEncoding() : '';
1004
        $def .= $column->getCollation() ? ' COLLATE ' . $column->getCollation() : '';
1005
        $def .= (!$column->isSigned() && isset($this->signedColumnTypes[$column->getType()])) ? ' unsigned' : '';