Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 364-367 (lines=4) @@
361
            $column->size = $schema['character_maximum_length'];
362
        }
363
364
        if ($column->type == 'numeric') {
365
            $column->precision = $schema['numeric_precision'];
366
            $column->scale = $schema['numeric_scale'];
367
        }
368
369
        if ($column->type == 'USER-DEFINED' && $schema['typtype'] == 'e') {
370
            $column->type = $schema['typname'];

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

@@ 392-395 (lines=4) @@
389
            $column->size = 0;
390
        }
391
392
        if ($column->type == 'decimal') {
393
            $column->precision = (int)$schema['NUMERIC_PRECISION'];
394
            $column->scale = (int)$schema['NUMERIC_SCALE'];
395
        }
396
397
        //Normalizing default value
398
        $column->normalizeDefault();