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

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