@@ -19,7 +19,6 @@ class PostgreSQLSchemaManager extends \Doctrine\DBAL\Schema\PostgreSQLSchemaMana
1919 */
2020 protected $ _platform ;
2121
22-
2322 public function createSchema (): Schema
2423 {
2524 $ schemaNames = [];
@@ -161,7 +160,7 @@ protected function _getPortableTableColumnDefinition($tableColumn): Column
161160
162161 $ fixed = null ;
163162
164- if (! isset ($ tableColumn ['name ' ])) {
163+ if (!isset ($ tableColumn ['name ' ])) {
165164 $ tableColumn ['name ' ] = '' ;
166165 }
167166
@@ -177,7 +176,7 @@ protected function _getPortableTableColumnDefinition($tableColumn): Column
177176 if (
178177 $ tableColumn ['domain_type ' ] !== null
179178 && $ tableColumn ['domain_type ' ] !== ''
180- && ! $ this ->_platform ->hasDoctrineTypeMappingFor ($ tableColumn ['type ' ])
179+ && !$ this ->_platform ->hasDoctrineTypeMappingFor ($ tableColumn ['type ' ])
181180 ) {
182181 $ dbType = strtolower ($ tableColumn ['domain_type ' ]);
183182 $ tableColumn ['complete_type ' ] = $ tableColumn ['domain_complete_type ' ];
@@ -262,7 +261,7 @@ protected function _getPortableTableColumnDefinition($tableColumn): Column
262261
263262 break ;
264263
265- // PostgreSQL 9.4+ only
264+ // PostgreSQL 9.4+ only
266265 case 'jsonb ' :
267266 $ jsonb = true ;
268267
@@ -272,7 +271,7 @@ protected function _getPortableTableColumnDefinition($tableColumn): Column
272271 if (
273272 $ tableColumn ['default ' ] !== null && preg_match (
274273 "('([^']+)'::) " ,
275- (string )$ tableColumn ['default ' ],
274+ (string ) $ tableColumn ['default ' ],
276275 $ match ,
277276 ) === 1
278277 ) {
@@ -303,12 +302,12 @@ protected function _getPortableTableColumnDefinition($tableColumn): Column
303302 }
304303 }
305304
306- if (isset ($ tableColumn ['collation ' ]) && ! empty ($ tableColumn ['collation ' ])) {
305+ if (isset ($ tableColumn ['collation ' ]) && !empty ($ tableColumn ['collation ' ])) {
307306 $ column ->setPlatformOption ('collation ' , $ tableColumn ['collation ' ]);
308307 }
309308
310309 if ($ column ->getType ()->getName () === Types::JSON ) {
311- if (! $ column ->getType () instanceof JsonType) {
310+ if (!$ column ->getType () instanceof JsonType) {
312311 Deprecation::trigger (
313312 'doctrine/dbal ' ,
314313 'https://github.com/doctrine/dbal/pull/5049 ' ,
@@ -339,11 +338,11 @@ private function getPortableEnumTypesList(array $rawTypes): array
339338 foreach ($ usages as &$ usage ) {
340339 $ default = $ usage ['default ' ] ?? null ;
341340 if ($ default !== null ) {
342- $ default = trim (explode (':: ' , $ default )[0 ], '\'' );
341+ $ default = trim (explode (':: ' , $ default )[0 ], '\'' );
343342 }
344343 $ usage ['default ' ] = $ default ;
345344 }
346-
345+
347346 $ list [] = new EnumTypeAsset (
348347 $ rawType ['name ' ],
349348 $ rawType ['comment ' ],
@@ -392,7 +391,7 @@ private function fixVersion94NegativeNumericDefaultValue(mixed $defaultValue): m
392391 }
393392
394393 /**
395- * Parses a default value expression as given by PostgreSQL
394+ * Parses a default value expression as given by PostgreSQL.
396395 */
397396 private function parseDefaultExpression (?string $ default ): ?string
398397 {
@@ -402,4 +401,4 @@ private function parseDefaultExpression(?string $default): ?string
402401
403402 return str_replace ("'' " , "' " , $ default );
404403 }
405- }
404+ }
0 commit comments