@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | return $this->type('bigPrimary'); |
163 | 163 | } |
164 | 164 | |
165 | - public function enum(string|array $values): AbstractColumn |
|
165 | + public function enum(string | array $values): AbstractColumn |
|
166 | 166 | { |
167 | 167 | $this->enumValues = array_map('strval', \is_array($values) ? $values : \func_get_args()); |
168 | 168 | |
@@ -298,13 +298,13 @@ discard block |
||
298 | 298 | return $column; |
299 | 299 | } |
300 | 300 | |
301 | - if (str_contains($column->type, 'char') && (int) $schema['character_maximum_length']) { |
|
301 | + if (str_contains($column->type, 'char') && (int)$schema['character_maximum_length']) { |
|
302 | 302 | $column->size = $schema['character_maximum_length']; |
303 | 303 | } |
304 | 304 | |
305 | 305 | if ($column->type === 'numeric') { |
306 | - $column->precision = (int) $schema['numeric_precision']; |
|
307 | - $column->scale = (int) $schema['numeric_scale']; |
|
306 | + $column->precision = (int)$schema['numeric_precision']; |
|
307 | + $column->scale = (int)$schema['numeric_scale']; |
|
308 | 308 | } |
309 | 309 | |
310 | 310 | if ($column->type === 'USER-DEFINED' && $schema['typtype'] === 'e') { |