Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

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