Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 973-975 (lines=3) @@
970
        if (($column->getLimit() || isset($sqlType['limit'])) && $limitable) {
971
            $def .= '(' . ($column->getLimit() ?: $sqlType['limit']) . ')';
972
        }
973
        if (($values = $column->getValues()) && is_array($values)) {
974
            $def .= " CHECK({$column->getName()} IN ('" . implode("', '", $values) . "'))";
975
        }
976
977
        $default = $column->getDefault();
978

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

@@ 1025-1027 (lines=3) @@
1022
        } elseif (isset($sqlType['limit'])) {
1023
            $def .= '(' . $sqlType['limit'] . ')';
1024
        }
1025
        if (($values = $column->getValues()) && is_array($values)) {
1026
            $def .= "('" . implode("', '", $values) . "')";
1027
        }
1028
        $def .= $column->getEncoding() ? ' CHARACTER SET ' . $column->getEncoding() : '';
1029
        $def .= $column->getCollation() ? ' COLLATE ' . $column->getCollation() : '';
1030
        $def .= (!$column->isSigned() && isset($this->signedColumnTypes[$column->getType()])) ? ' unsigned' : '';