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

@@ 202-205 (lines=4) @@
199
                : null,
200
        ];
201
202
        if ($scale !== null && $precision !== null) {
203
            $options['scale'] = $scale;
204
            $options['precision'] = $precision;
205
        }
206
207
        $column = new Column($tableColumn['field'], Type::getType($type), $options);
208