Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 374-377 (lines=4) @@
371
            $column->size = $schema['character_maximum_length'];
372
        }
373
374
        if ($column->type == 'numeric') {
375
            $column->precision = $schema['numeric_precision'];
376
            $column->scale = $schema['numeric_scale'];
377
        }
378
379
        if ($column->type == 'USER-DEFINED' && $schema['typtype'] == 'e') {
380
            $column->type = $schema['typname'];

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

@@ 403-406 (lines=4) @@
400
            $column->size = 0;
401
        }
402
403
        if ($column->type == 'decimal') {
404
            $column->precision = (int)$schema['NUMERIC_PRECISION'];
405
            $column->scale = (int)$schema['NUMERIC_SCALE'];
406
        }
407
408
        //Normalizing default value
409
        $column->normalizeDefault();