Test Failed
Pull Request — 2.x (#34)
by Aleksei
02:39
created
src/Driver/Postgres/Schema/PostgresColumn.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
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
 
@@ -300,12 +300,12 @@  discard block
 block discarded – undo
300 300
         }
301 301
 
302 302
         if ($schema['character_maximum_length'] !== null && str_contains($column->type, 'char')) {
303
-            $column->size = (int) $schema['character_maximum_length'];
303
+            $column->size = (int)$schema['character_maximum_length'];
304 304
         }
305 305
 
306 306
         if ($column->type === 'numeric') {
307
-            $column->precision = (int) $schema['numeric_precision'];
308
-            $column->scale = (int) $schema['numeric_scale'];
307
+            $column->precision = (int)$schema['numeric_precision'];
308
+            $column->scale = (int)$schema['numeric_scale'];
309 309
         }
310 310
 
311 311
         if ($column->type === 'USER-DEFINED' && $schema['typtype'] === 'e') {
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
             return true;
335 335
         }
336 336
 
337
-        return (bool) (
337
+        return (bool)(
338 338
             in_array($this->getAbstractType(), ['primary', 'bigPrimary'])
339 339
             && $initial->getDefaultValue() != $this->getDefaultValue()
340 340
         )
Please login to merge, or discard this patch.