Code Duplication    Length = 4-4 lines in 2 locations

source/Spiral/Database/Drivers/Postgres/Schemas/PostgresColumn.php 1 location

@@ 359-362 (lines=4) @@
356
            $column->size = $schema['character_maximum_length'];
357
        }
358
359
        if ($column->type == 'numeric') {
360
            $column->precision = $schema['numeric_precision'];
361
            $column->scale = $schema['numeric_scale'];
362
        }
363
364
        if ($column->type == 'USER-DEFINED' && $schema['typtype'] == 'e') {
365
            $column->type = $schema['typname'];

source/Spiral/Database/Drivers/SQLServer/Schemas/SQLServerColumn.php 1 location

@@ 382-385 (lines=4) @@
379
            $column->size = 0;
380
        }
381
382
        if ($column->type == 'decimal') {
383
            $column->precision = (int)$schema['NUMERIC_PRECISION'];
384
            $column->scale = (int)$schema['NUMERIC_SCALE'];
385
        }
386
387
        //Normalizing default value
388
        $column->normalizeDefault();