Code Duplication    Length = 4-4 lines in 2 locations

lib/Doctrine/DBAL/Schema/DB2SchemaManager.php 1 location

@@ 108-111 (lines=4) @@
105
            'platformOptions' => [],
106
        ];
107
108
        if ($scale !== null && $precision !== null) {
109
            $options['scale'] = $scale;
110
            $options['precision'] = $precision;
111
        }
112
113
        return new Column($tableColumn['colname'], \Doctrine\DBAL\Types\Type::getType($type), $options);
114
    }

lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php 1 location

@@ 212-215 (lines=4) @@
209
                : null,
210
        ];
211
212
        if ($scale !== null && $precision !== null) {
213
            $options['scale'] = $scale;
214
            $options['precision'] = $precision;
215
        }
216
217
        $column = new Column($tableColumn['field'], Type::getType($type), $options);
218