Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 297-300 (lines=4) @@
294
            $this->size = $schema['character_maximum_length'];
295
        }
296
297
        if ($this->type == 'numeric') {
298
            $this->precision = $schema['numeric_precision'];
299
            $this->scale = $schema['numeric_scale'];
300
        }
301
302
        /**
303
         * Attention, this is not default spiral enum type emulated via CHECK. This is real Postgres

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

@@ 288-291 (lines=4) @@
285
            $this->size = 0;
286
        }
287
288
        if ($this->type == 'decimal') {
289
            $this->precision = (int)$schema['NUMERIC_PRECISION'];
290
            $this->scale = (int)$schema['NUMERIC_SCALE'];
291
        }
292
293
        //Normalizing default value
294
        $this->normalizeDefault();