Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 133-135 (lines=3) @@
130
131
        $column = new Column($tableColumn['name'], Type::getType($type), $options);
132
133
        if (isset($tableColumn['collation']) && $tableColumn['collation'] !== 'NULL') {
134
            $column->setPlatformOption('collation', $tableColumn['collation']);
135
        }
136
137
        return $column;
138
    }

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

@@ 442-444 (lines=3) @@
439
440
        $column = new Column($tableColumn['field'], Type::getType($type), $options);
441
442
        if (isset($tableColumn['collation']) && !empty($tableColumn['collation'])) {
443
            $column->setPlatformOption('collation', $tableColumn['collation']);
444
        }
445
446
        if (in_array($column->getType()->getName(), [Type::JSON_ARRAY, Type::JSON], true)) {
447
            $column->setPlatformOption('jsonb', $jsonb);