Completed
Pull Request — master (#7902)
by
unknown
63:54
created
lib/Doctrine/ORM/Persisters/SqlExpressionVisitor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,11 +74,11 @@
 block discarded – undo
74 74
 
75 75
         switch ($expr->getType()) {
76 76
             case CompositeExpression::TYPE_AND:
77
-                return '(' . \implode(' AND ', $expressionList) . ')';
77
+                return '('.\implode(' AND ', $expressionList).')';
78 78
             case CompositeExpression::TYPE_OR:
79
-                return '(' . \implode(' OR ', $expressionList) . ')';
79
+                return '('.\implode(' OR ', $expressionList).')';
80 80
             default:
81
-                throw new RuntimeException('Unknown composite ' . $expr->getType());
81
+                throw new RuntimeException('Unknown composite '.$expr->getType());
82 82
         }
83 83
     }
84 84
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Entity/SingleTablePersister.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $this->currentPersisterContext->rsm->setDiscriminatorColumn('r', $resultColumnName);
46 46
         $this->currentPersisterContext->rsm->addMetaResult('r', $resultColumnName, $discrColumnName, false, $discrColumnType);
47 47
 
48
-        $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias . '.' . $quotedColumnName, $this->platform);
48
+        $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias.'.'.$quotedColumnName, $this->platform);
49 49
 
50 50
         // Append subclass columns
51 51
         foreach ($this->class->getSubClasses() as $subClassName) {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                             /** @var JoinColumnMetadata $joinColumn */
70 70
                             $referencedColumnName = $joinColumn->getReferencedColumnName();
71 71
 
72
-                            if (! $joinColumn->getType()) {
72
+                            if ( ! $joinColumn->getType()) {
73 73
                                 $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
74 74
                             }
75 75
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             $conditionSql .= ' AND ';
124 124
         }
125 125
 
126
-        return $conditionSql . $this->getSelectConditionDiscriminatorValueSQL();
126
+        return $conditionSql.$this->getSelectConditionDiscriminatorValueSQL();
127 127
     }
128 128
 
129 129
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $conditionSql .= ' AND ';
138 138
         }
139 139
 
140
-        return $conditionSql . $this->getSelectConditionDiscriminatorValueSQL();
140
+        return $conditionSql.$this->getSelectConditionDiscriminatorValueSQL();
141 141
     }
142 142
 
143 143
     /**
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
         return \sprintf(
166 166
             '%s IN (%s)',
167
-            $discrColumnType->convertToDatabaseValueSQL($tableAlias . '.' . $quotedColumnName, $this->platform),
167
+            $discrColumnType->convertToDatabaseValueSQL($tableAlias.'.'.$quotedColumnName, $this->platform),
168 168
             \implode(', ', $values)
169 169
         );
170 170
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Entity/JoinedSubclassPersister.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             }
110 110
 
111 111
             foreach ($data as $columnName => $value) {
112
-                if (! \is_array($id) || ! isset($id[$columnName])) {
112
+                if ( ! \is_array($id) || ! isset($id[$columnName])) {
113 113
                     $type = $this->columns[$columnName]->getType();
114 114
 
115 115
                     $stmt->bindValue($paramIndex++, $value, $type);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     {
134 134
         $updateData = $this->prepareUpdateData($entity);
135 135
 
136
-        if (! $updateData) {
136
+        if ( ! $updateData) {
137 137
             return;
138 138
         }
139 139
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             $versionedClass = $this->class->versionProperty->getDeclaringClass();
152 152
             $versionedTable = $versionedClass->getTableName();
153 153
 
154
-            if (! isset($updateData[$versionedTable])) {
154
+            if ( ! isset($updateData[$versionedTable])) {
155 155
                 $tableName = $versionedClass->table->getQuotedQualifiedName($this->platform);
156 156
 
157 157
                 $this->updateTable($entity, $tableName, [], true);
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 
233 233
         if ($filterSql) {
234 234
             $conditionSql .= $conditionSql
235
-                ? ' AND ' . $filterSql
235
+                ? ' AND '.$filterSql
236 236
                 : $filterSql;
237 237
         }
238 238
 
@@ -240,26 +240,26 @@  discard block
 block discarded – undo
240 240
 
241 241
         switch ($lockMode) {
242 242
             case LockMode::PESSIMISTIC_READ:
243
-                $lockSql = ' ' . $this->platform->getReadLockSQL();
243
+                $lockSql = ' '.$this->platform->getReadLockSQL();
244 244
                 break;
245 245
 
246 246
             case LockMode::PESSIMISTIC_WRITE:
247
-                $lockSql = ' ' . $this->platform->getWriteLockSQL();
247
+                $lockSql = ' '.$this->platform->getWriteLockSQL();
248 248
                 break;
249 249
         }
250 250
 
251 251
         $tableName  = $this->class->table->getQuotedQualifiedName($this->platform);
252
-        $from       = ' FROM ' . $tableName . ' ' . $baseTableAlias;
253
-        $where      = $conditionSql !== '' ? ' WHERE ' . $conditionSql : '';
252
+        $from       = ' FROM '.$tableName.' '.$baseTableAlias;
253
+        $where      = $conditionSql !== '' ? ' WHERE '.$conditionSql : '';
254 254
         $lock       = $this->platform->appendLockHint($from, $lockMode);
255 255
         $columnList = $this->getSelectColumnsSQL();
256
-        $query      = 'SELECT ' . $columnList
256
+        $query      = 'SELECT '.$columnList
257 257
                     . $lock
258 258
                     . $joinSql
259 259
                     . $where
260 260
                     . $orderBySql;
261 261
 
262
-        return $this->platform->modifyLimitQuery($query, $limit, $offset ?? 0) . $lockSql;
262
+        return $this->platform->modifyLimitQuery($query, $limit, $offset ?? 0).$lockSql;
263 263
     }
264 264
 
265 265
     /**
@@ -281,14 +281,14 @@  discard block
 block discarded – undo
281 281
 
282 282
         if ($filterSql !== '') {
283 283
             $conditionSql = $conditionSql
284
-                ? $conditionSql . ' AND ' . $filterSql
284
+                ? $conditionSql.' AND '.$filterSql
285 285
                 : $filterSql;
286 286
         }
287 287
 
288 288
         return 'SELECT COUNT(*) '
289
-            . 'FROM ' . $tableName . ' ' . $baseTableAlias
289
+            . 'FROM '.$tableName.' '.$baseTableAlias
290 290
             . $joinSql
291
-            . (empty($conditionSql) ? '' : ' WHERE ' . $conditionSql);
291
+            . (empty($conditionSql) ? '' : ' WHERE '.$conditionSql);
292 292
     }
293 293
 
294 294
     /**
@@ -307,18 +307,18 @@  discard block
 block discarded – undo
307 307
             $conditions = [];
308 308
             $tableName  = $parentClass->table->getQuotedQualifiedName($this->platform);
309 309
             $tableAlias = $this->getSQLTableAlias($parentClass->getTableName());
310
-            $joinSql   .= ' INNER JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';
310
+            $joinSql   .= ' INNER JOIN '.$tableName.' '.$tableAlias.' ON ';
311 311
 
312 312
             foreach ($identifierColumns as $idColumn) {
313 313
                 $quotedColumnName = $this->platform->quoteIdentifier($idColumn->getColumnName());
314 314
 
315
-                $conditions[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;
315
+                $conditions[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;
316 316
             }
317 317
 
318 318
             $joinSql .= \implode(' AND ', $conditions);
319 319
         }
320 320
 
321
-        return parent::getLockTablesSql($lockMode) . $joinSql;
321
+        return parent::getLockTablesSql($lockMode).$joinSql;
322 322
     }
323 323
 
324 324
     /**
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
                 continue;
346 346
             }
347 347
 
348
-            if (! ($property instanceof ToOneAssociationMetadata) || ! $property->isOwningSide()) {
348
+            if ( ! ($property instanceof ToOneAssociationMetadata) || ! $property->isOwningSide()) {
349 349
                 continue;
350 350
             }
351 351
 
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
                 /** @var JoinColumnMetadata $joinColumn */
356 356
                 $referencedColumnName = $joinColumn->getReferencedColumnName();
357 357
 
358
-                if (! $joinColumn->getType()) {
358
+                if ( ! $joinColumn->getType()) {
359 359
                     $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
360 360
                 }
361 361
 
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
         $this->currentPersisterContext->rsm->setDiscriminatorColumn('r', $resultColumnName);
375 375
         $this->currentPersisterContext->rsm->addMetaResult('r', $resultColumnName, $discrColumnName, false, $discrColumnType);
376 376
 
377
-        $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias . '.' . $quotedColumnName, $this->platform);
377
+        $columnList[] = $discrColumnType->convertToDatabaseValueSQL($discrTableAlias.'.'.$quotedColumnName, $this->platform);
378 378
 
379 379
         // sub tables
380 380
         foreach ($this->class->getSubClasses() as $subClassName) {
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
                             /** @var JoinColumnMetadata $joinColumn */
399 399
                             $referencedColumnName = $joinColumn->getReferencedColumnName();
400 400
 
401
-                            if (! $joinColumn->getType()) {
401
+                            if ( ! $joinColumn->getType()) {
402 402
                                 $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
403 403
                             }
404 404
 
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
                         $columnName           = $joinColumn->getColumnName();
450 450
                         $referencedColumnName = $joinColumn->getReferencedColumnName();
451 451
 
452
-                        if (! $joinColumn->getType()) {
452
+                        if ( ! $joinColumn->getType()) {
453 453
                             $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
454 454
                         }
455 455
 
@@ -505,12 +505,12 @@  discard block
 block discarded – undo
505 505
             $conditions = [];
506 506
             $tableName  = $parentClass->table->getQuotedQualifiedName($this->platform);
507 507
             $tableAlias = $this->getSQLTableAlias($parentClass->getTableName());
508
-            $joinSql   .= ' INNER JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';
508
+            $joinSql   .= ' INNER JOIN '.$tableName.' '.$tableAlias.' ON ';
509 509
 
510 510
             foreach ($identifierColumns as $idColumn) {
511 511
                 $quotedColumnName = $this->platform->quoteIdentifier($idColumn->getColumnName());
512 512
 
513
-                $conditions[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;
513
+                $conditions[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;
514 514
             }
515 515
 
516 516
             $joinSql .= \implode(' AND ', $conditions);
@@ -522,12 +522,12 @@  discard block
 block discarded – undo
522 522
             $subClass   = $this->em->getClassMetadata($subClassName);
523 523
             $tableName  = $subClass->table->getQuotedQualifiedName($this->platform);
524 524
             $tableAlias = $this->getSQLTableAlias($subClass->getTableName());
525
-            $joinSql   .= ' LEFT JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';
525
+            $joinSql   .= ' LEFT JOIN '.$tableName.' '.$tableAlias.' ON ';
526 526
 
527 527
             foreach ($identifierColumns as $idColumn) {
528 528
                 $quotedColumnName = $this->platform->quoteIdentifier($idColumn->getColumnName());
529 529
 
530
-                $conditions[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;
530
+                $conditions[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;
531 531
             }
532 532
 
533 533
             $joinSql .= \implode(' AND ', $conditions);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -303,8 +303,8 @@  discard block
 block discarded – undo
303 303
 
304 304
         // FIXME: Order with composite keys might not be correct
305 305
         $sql = 'SELECT ' . $columnName
306
-             . ' FROM ' . $tableName
307
-             . ' WHERE ' . \implode(' = ? AND ', $identifier) . ' = ?';
306
+                . ' FROM ' . $tableName
307
+                . ' WHERE ' . \implode(' = ? AND ', $identifier) . ' = ?';
308 308
 
309 309
         $flattenedId = $this->em->getIdentifierFlattener()->flattenIdentifier($versionedClass, $id);
310 310
         $versionType = $versionProperty->getType();
@@ -517,8 +517,8 @@  discard block
 block discarded – undo
517 517
         }
518 518
 
519 519
         $sql = 'UPDATE ' . $quotedTableName
520
-             . ' SET ' . \implode(', ', $set)
521
-             . ' WHERE ' . \implode(' = ? AND ', $where) . ' = ?';
520
+                . ' SET ' . \implode(', ', $set)
521
+                . ' WHERE ' . \implode(' = ? AND ', $where) . ' = ?';
522 522
 
523 523
         $result = $this->conn->executeUpdate($sql, $params, $types);
524 524
 
@@ -1637,9 +1637,9 @@  discard block
 block discarded – undo
1637 1637
         $lock  = $this->getLockTablesSql($lockMode);
1638 1638
         $where = ($conditionSql ? ' WHERE ' . $conditionSql : '') . ' ';
1639 1639
         $sql   = 'SELECT 1 '
1640
-             . $lock
1641
-             . $where
1642
-             . $lockSql;
1640
+                . $lock
1641
+                . $where
1642
+                . $lockSql;
1643 1643
 
1644 1644
         [$params, $types] = $this->expandParameters($criteria);
1645 1645
 
@@ -2107,8 +2107,8 @@  discard block
 block discarded – undo
2107 2107
         $alias = $this->getSQLTableAlias($this->class->getTableName());
2108 2108
 
2109 2109
         $sql = 'SELECT 1 '
2110
-             . $this->getLockTablesSql(null)
2111
-             . ' WHERE ' . $this->getSelectConditionSQL($criteria);
2110
+                . $this->getLockTablesSql(null)
2111
+                . ' WHERE ' . $this->getSelectConditionSQL($criteria);
2112 2112
 
2113 2113
         [$params, $types] = $this->expandParameters($criteria);
2114 2114
 
Please login to merge, or discard this patch.
Spacing   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -295,16 +295,16 @@  discard block
 block discarded – undo
295 295
         $tableName      = $versionedClass->table->getQuotedQualifiedName($this->platform);
296 296
         $columnName     = $this->platform->quoteIdentifier($versionProperty->getColumnName());
297 297
         $identifier     = \array_map(
298
-            function ($columnName) {
298
+            function($columnName) {
299 299
                 return $this->platform->quoteIdentifier($columnName);
300 300
             },
301 301
             \array_keys($versionedClass->getIdentifierColumns($this->em))
302 302
         );
303 303
 
304 304
         // FIXME: Order with composite keys might not be correct
305
-        $sql = 'SELECT ' . $columnName
306
-             . ' FROM ' . $tableName
307
-             . ' WHERE ' . \implode(' = ? AND ', $identifier) . ' = ?';
305
+        $sql = 'SELECT '.$columnName
306
+             . ' FROM '.$tableName
307
+             . ' WHERE '.\implode(' = ? AND ', $identifier).' = ?';
308 308
 
309 309
         $flattenedId = $this->em->getIdentifierFlattener()->flattenIdentifier($versionedClass, $id);
310 310
         $versionType = $versionProperty->getType();
@@ -343,13 +343,13 @@  discard block
 block discarded – undo
343 343
         $tableName  = $this->class->getTableName();
344 344
         $updateData = $this->prepareUpdateData($entity);
345 345
 
346
-        if (! isset($updateData[$tableName])) {
346
+        if ( ! isset($updateData[$tableName])) {
347 347
             return;
348 348
         }
349 349
 
350 350
         $data = $updateData[$tableName];
351 351
 
352
-        if (! $data) {
352
+        if ( ! $data) {
353 353
             return;
354 354
         }
355 355
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
 
402 402
             if ($value !== null) {
403 403
                 // @todo guilhermeblanco Make sure we do not have flat association values.
404
-                if (! \is_array($value)) {
404
+                if ( ! \is_array($value)) {
405 405
                     $value = [$targetClass->identifier[0] => $value];
406 406
                 }
407 407
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
                 $referencedColumnName = $joinColumn->getReferencedColumnName();
415 415
                 $targetField          = $targetClass->fieldNames[$referencedColumnName];
416 416
 
417
-                if (! $joinColumn->getType()) {
417
+                if ( ! $joinColumn->getType()) {
418 418
                     $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
419 419
                 }
420 420
 
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
                         $quotedColumnName     = $this->platform->quoteIdentifier($joinColumn->getColumnName());
481 481
                         $referencedColumnName = $joinColumn->getReferencedColumnName();
482 482
 
483
-                        if (! $joinColumn->getType()) {
483
+                        if ( ! $joinColumn->getType()) {
484 484
                             $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
485 485
                         }
486 486
 
@@ -507,18 +507,18 @@  discard block
 block discarded – undo
507 507
                 case Type::SMALLINT:
508 508
                 case Type::INTEGER:
509 509
                 case Type::BIGINT:
510
-                    $set[] = $versionColumnName . ' = ' . $versionColumnName . ' + 1';
510
+                    $set[] = $versionColumnName.' = '.$versionColumnName.' + 1';
511 511
                     break;
512 512
 
513 513
                 case Type::DATETIME:
514
-                    $set[] = $versionColumnName . ' = CURRENT_TIMESTAMP';
514
+                    $set[] = $versionColumnName.' = CURRENT_TIMESTAMP';
515 515
                     break;
516 516
             }
517 517
         }
518 518
 
519
-        $sql = 'UPDATE ' . $quotedTableName
520
-             . ' SET ' . \implode(', ', $set)
521
-             . ' WHERE ' . \implode(' = ? AND ', $where) . ' = ?';
519
+        $sql = 'UPDATE '.$quotedTableName
520
+             . ' SET '.\implode(', ', $set)
521
+             . ' WHERE '.\implode(' = ? AND ', $where).' = ?';
522 522
 
523 523
         $result = $this->conn->executeUpdate($sql, $params, $types);
524 524
 
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
     protected function deleteJoinTableRecords($identifier)
536 536
     {
537 537
         foreach ($this->class->getPropertiesIterator() as $association) {
538
-            if (! ($association instanceof ManyToManyAssociationMetadata)) {
538
+            if ( ! ($association instanceof ManyToManyAssociationMetadata)) {
539 539
                 continue;
540 540
             }
541 541
 
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
             $otherKeys         = [];
548 548
             $keys              = [];
549 549
 
550
-            if (! $owningAssociation->isOwningSide()) {
550
+            if ( ! $owningAssociation->isOwningSide()) {
551 551
                 $class             = $this->em->getClassMetadata($association->getTargetEntity());
552 552
                 $owningAssociation = $class->getProperty($association->getMappedBy());
553 553
             }
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
             }
658 658
 
659 659
             // Only owning side of x-1 associations can have a FK column.
660
-            if (! $property instanceof ToOneAssociationMetadata || ! $property->isOwningSide()) {
660
+            if ( ! $property instanceof ToOneAssociationMetadata || ! $property->isOwningSide()) {
661 661
                 continue;
662 662
             }
663 663
 
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
                 /** @var JoinColumnMetadata $joinColumn */
678 678
                 $referencedColumnName = $joinColumn->getReferencedColumnName();
679 679
 
680
-                if (! $joinColumn->getType()) {
680
+                if ( ! $joinColumn->getType()) {
681 681
                     $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
682 682
                 }
683 683
 
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
         $propertyName = $this->class->fieldNames[$columnName];
705 705
         $property     = $this->class->getProperty($propertyName);
706 706
 
707
-        if (! $property) {
707
+        if ( ! $property) {
708 708
             return null;
709 709
         }
710 710
 
@@ -723,7 +723,7 @@  discard block
 block discarded – undo
723 723
             /** @var JoinColumnMetadata $joinColumn */
724 724
             $referencedColumnName = $joinColumn->getReferencedColumnName();
725 725
 
726
-            if (! $joinColumn->getType()) {
726
+            if ( ! $joinColumn->getType()) {
727 727
                 $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
728 728
             }
729 729
 
@@ -828,7 +828,7 @@  discard block
 block discarded – undo
828 828
             $sourceKeyColumn = $joinColumn->getReferencedColumnName();
829 829
             $targetKeyColumn = $joinColumn->getColumnName();
830 830
 
831
-            if (! isset($sourceClass->fieldNames[$sourceKeyColumn])) {
831
+            if ( ! isset($sourceClass->fieldNames[$sourceKeyColumn])) {
832 832
                 throw MappingException::joinColumnMustPointToMappedField(
833 833
                     $sourceClass->getClassName(),
834 834
                     $sourceKeyColumn
@@ -1055,7 +1055,7 @@  discard block
 block discarded – undo
1055 1055
         $criteria    = [];
1056 1056
         $parameters  = [];
1057 1057
 
1058
-        if (! $association->isOwningSide()) {
1058
+        if ( ! $association->isOwningSide()) {
1059 1059
             $class       = $this->em->getClassMetadata($association->getTargetEntity());
1060 1060
             $owningAssoc = $class->getProperty($association->getMappedBy());
1061 1061
         }
@@ -1083,7 +1083,7 @@  discard block
 block discarded – undo
1083 1083
                 $value = $value[$targetClass->identifier[0]];
1084 1084
             }
1085 1085
 
1086
-            $criteria[$joinTableName . '.' . $quotedColumnName] = $value;
1086
+            $criteria[$joinTableName.'.'.$quotedColumnName] = $value;
1087 1087
             $parameters[]                                       = [
1088 1088
                 'value' => $value,
1089 1089
                 'field' => $fieldName,
@@ -1133,11 +1133,11 @@  discard block
 block discarded – undo
1133 1133
 
1134 1134
         switch ($lockMode) {
1135 1135
             case LockMode::PESSIMISTIC_READ:
1136
-                $lockSql = ' ' . $this->platform->getReadLockSQL();
1136
+                $lockSql = ' '.$this->platform->getReadLockSQL();
1137 1137
                 break;
1138 1138
 
1139 1139
             case LockMode::PESSIMISTIC_WRITE:
1140
-                $lockSql = ' ' . $this->platform->getWriteLockSQL();
1140
+                $lockSql = ' '.$this->platform->getWriteLockSQL();
1141 1141
                 break;
1142 1142
         }
1143 1143
 
@@ -1148,14 +1148,14 @@  discard block
 block discarded – undo
1148 1148
 
1149 1149
         if ($filterSql !== '') {
1150 1150
             $conditionSql = $conditionSql
1151
-                ? $conditionSql . ' AND ' . $filterSql
1151
+                ? $conditionSql.' AND '.$filterSql
1152 1152
                 : $filterSql;
1153 1153
         }
1154 1154
 
1155
-        $select = 'SELECT ' . $columnList;
1156
-        $from   = ' FROM ' . $tableName . ' ' . $tableAlias;
1157
-        $join   = $this->currentPersisterContext->selectJoinSql . $joinSql;
1158
-        $where  = ($conditionSql ? ' WHERE ' . $conditionSql : '');
1155
+        $select = 'SELECT '.$columnList;
1156
+        $from   = ' FROM '.$tableName.' '.$tableAlias;
1157
+        $join   = $this->currentPersisterContext->selectJoinSql.$joinSql;
1158
+        $where  = ($conditionSql ? ' WHERE '.$conditionSql : '');
1159 1159
         $lock   = $this->platform->appendLockHint($from, $lockMode);
1160 1160
         $query  = $select
1161 1161
             . $lock
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
             . $where
1164 1164
             . $orderBySql;
1165 1165
 
1166
-        return $this->platform->modifyLimitQuery($query, $limit, $offset ?? 0) . $lockSql;
1166
+        return $this->platform->modifyLimitQuery($query, $limit, $offset ?? 0).$lockSql;
1167 1167
     }
1168 1168
 
1169 1169
     /**
@@ -1182,13 +1182,13 @@  discard block
 block discarded – undo
1182 1182
 
1183 1183
         if ($filterSql !== '') {
1184 1184
             $conditionSql = $conditionSql
1185
-                ? $conditionSql . ' AND ' . $filterSql
1185
+                ? $conditionSql.' AND '.$filterSql
1186 1186
                 : $filterSql;
1187 1187
         }
1188 1188
 
1189 1189
         return 'SELECT COUNT(*) '
1190
-            . 'FROM ' . $tableName . ' ' . $tableAlias
1191
-            . (empty($conditionSql) ? '' : ' WHERE ' . $conditionSql);
1190
+            . 'FROM '.$tableName.' '.$tableAlias
1191
+            . (empty($conditionSql) ? '' : ' WHERE '.$conditionSql);
1192 1192
     }
1193 1193
 
1194 1194
     /**
@@ -1203,7 +1203,7 @@  discard block
 block discarded – undo
1203 1203
      */
1204 1204
     final protected function getOrderBySQL(array $orderBy, $baseTableAlias)
1205 1205
     {
1206
-        if (! $orderBy) {
1206
+        if ( ! $orderBy) {
1207 1207
             return '';
1208 1208
         }
1209 1209
 
@@ -1212,7 +1212,7 @@  discard block
 block discarded – undo
1212 1212
         foreach ($orderBy as $fieldName => $orientation) {
1213 1213
             $orientation = \strtoupper(\trim($orientation));
1214 1214
 
1215
-            if (! \in_array($orientation, ['ASC', 'DESC'], true)) {
1215
+            if ( ! \in_array($orientation, ['ASC', 'DESC'], true)) {
1216 1216
                 throw InvalidOrientation::fromClassNameAndField($this->class->getClassName(), $fieldName);
1217 1217
             }
1218 1218
 
@@ -1222,11 +1222,11 @@  discard block
 block discarded – undo
1222 1222
                 $tableAlias = $this->getSQLTableAlias($property->getTableName());
1223 1223
                 $columnName = $this->platform->quoteIdentifier($property->getColumnName());
1224 1224
 
1225
-                $orderByList[] = $tableAlias . '.' . $columnName . ' ' . $orientation;
1225
+                $orderByList[] = $tableAlias.'.'.$columnName.' '.$orientation;
1226 1226
 
1227 1227
                 continue;
1228 1228
             } elseif ($property instanceof AssociationMetadata) {
1229
-                if (! $property->isOwningSide()) {
1229
+                if ( ! $property->isOwningSide()) {
1230 1230
                     throw InvalidFindByCall::fromInverseSideUsage(
1231 1231
                         $this->class->getClassName(),
1232 1232
                         $fieldName
@@ -1242,7 +1242,7 @@  discard block
 block discarded – undo
1242 1242
                     /** @var JoinColumnMetadata $joinColumn */
1243 1243
                     $quotedColumnName = $this->platform->quoteIdentifier($joinColumn->getColumnName());
1244 1244
 
1245
-                    $orderByList[] = $tableAlias . '.' . $quotedColumnName . ' ' . $orientation;
1245
+                    $orderByList[] = $tableAlias.'.'.$quotedColumnName.' '.$orientation;
1246 1246
                 }
1247 1247
 
1248 1248
                 continue;
@@ -1251,7 +1251,7 @@  discard block
 block discarded – undo
1251 1251
             throw UnrecognizedField::byName($fieldName);
1252 1252
         }
1253 1253
 
1254
-        return ' ORDER BY ' . \implode(', ', $orderByList);
1254
+        return ' ORDER BY '.\implode(', ', $orderByList);
1255 1255
     }
1256 1256
 
1257 1257
     /**
@@ -1293,7 +1293,7 @@  discard block
 block discarded – undo
1293 1293
                     $isAssocToOneInverseSide = $property instanceof ToOneAssociationMetadata && ! $property->isOwningSide();
1294 1294
                     $isAssocFromOneEager     = ! $property instanceof ManyToManyAssociationMetadata && $property->getFetchMode() === FetchMode::EAGER;
1295 1295
 
1296
-                    if (! ($isAssocFromOneEager || $isAssocToOneInverseSide)) {
1296
+                    if ( ! ($isAssocFromOneEager || $isAssocToOneInverseSide)) {
1297 1297
                         break;
1298 1298
                     }
1299 1299
 
@@ -1308,7 +1308,7 @@  discard block
 block discarded – undo
1308 1308
                         break; // now this is why you shouldn't use inheritance
1309 1309
                     }
1310 1310
 
1311
-                    $assocAlias = 'e' . ($eagerAliasCounter++);
1311
+                    $assocAlias = 'e'.($eagerAliasCounter++);
1312 1312
 
1313 1313
                     $this->currentPersisterContext->rsm->addJoinedEntityResult($targetEntity, $assocAlias, 'r', $fieldName);
1314 1314
 
@@ -1336,14 +1336,14 @@  discard block
 block discarded – undo
1336 1336
                         $this->currentPersisterContext->rsm->addIndexBy($assocAlias, $property->getIndexedBy());
1337 1337
                     }
1338 1338
 
1339
-                    if (! $property->isOwningSide()) {
1339
+                    if ( ! $property->isOwningSide()) {
1340 1340
                         $owningAssociation = $eagerEntity->getProperty($property->getMappedBy());
1341 1341
                     }
1342 1342
 
1343 1343
                     $joinTableAlias = $this->getSQLTableAlias($eagerEntity->getTableName(), $assocAlias);
1344 1344
                     $joinTableName  = $eagerEntity->table->getQuotedQualifiedName($this->platform);
1345 1345
 
1346
-                    $this->currentPersisterContext->selectJoinSql .= ' ' . $this->getJoinSQLForAssociation($property);
1346
+                    $this->currentPersisterContext->selectJoinSql .= ' '.$this->getJoinSQLForAssociation($property);
1347 1347
 
1348 1348
                     $sourceClass      = $this->em->getClassMetadata($owningAssociation->getSourceEntity());
1349 1349
                     $targetClass      = $this->em->getClassMetadata($owningAssociation->getTargetEntity());
@@ -1367,7 +1367,7 @@  discard block
 block discarded – undo
1367 1367
                         $joinCondition[] = $filterSql;
1368 1368
                     }
1369 1369
 
1370
-                    $this->currentPersisterContext->selectJoinSql .= ' ' . $joinTableName . ' ' . $joinTableAlias . ' ON ';
1370
+                    $this->currentPersisterContext->selectJoinSql .= ' '.$joinTableName.' '.$joinTableAlias.' ON ';
1371 1371
                     $this->currentPersisterContext->selectJoinSql .= \implode(' AND ', $joinCondition);
1372 1372
 
1373 1373
                     break;
@@ -1389,7 +1389,7 @@  discard block
 block discarded – undo
1389 1389
      */
1390 1390
     protected function getSelectColumnAssociationSQL($field, AssociationMetadata $association, ClassMetadata $class, $alias = 'r')
1391 1391
     {
1392
-        if (! ($association->isOwningSide() && $association instanceof ToOneAssociationMetadata)) {
1392
+        if ( ! ($association->isOwningSide() && $association instanceof ToOneAssociationMetadata)) {
1393 1393
             return '';
1394 1394
         }
1395 1395
 
@@ -1404,7 +1404,7 @@  discard block
 block discarded – undo
1404 1404
             $referencedColumnName = $joinColumn->getReferencedColumnName();
1405 1405
             $resultColumnName     = $this->getSQLColumnAlias();
1406 1406
 
1407
-            if (! $joinColumn->getType()) {
1407
+            if ( ! $joinColumn->getType()) {
1408 1408
                 $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
1409 1409
             }
1410 1410
 
@@ -1434,7 +1434,7 @@  discard block
 block discarded – undo
1434 1434
         $owningAssociation = $association;
1435 1435
         $sourceTableAlias  = $this->getSQLTableAlias($this->class->getTableName());
1436 1436
 
1437
-        if (! $association->isOwningSide()) {
1437
+        if ( ! $association->isOwningSide()) {
1438 1438
             $targetEntity      = $this->em->getClassMetadata($association->getTargetEntity());
1439 1439
             $owningAssociation = $targetEntity->getProperty($association->getMappedBy());
1440 1440
         }
@@ -1455,7 +1455,7 @@  discard block
 block discarded – undo
1455 1455
             );
1456 1456
         }
1457 1457
 
1458
-        return ' INNER JOIN ' . $joinTableName . ' ON ' . \implode(' AND ', $conditions);
1458
+        return ' INNER JOIN '.$joinTableName.' ON '.\implode(' AND ', $conditions);
1459 1459
     }
1460 1460
 
1461 1461
     /**
@@ -1549,7 +1549,7 @@  discard block
 block discarded – undo
1549 1549
                             $columnName           = $joinColumn->getColumnName();
1550 1550
                             $referencedColumnName = $joinColumn->getReferencedColumnName();
1551 1551
 
1552
-                            if (! $joinColumn->getType()) {
1552
+                            if ( ! $joinColumn->getType()) {
1553 1553
                                 $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
1554 1554
                             }
1555 1555
 
@@ -1588,7 +1588,7 @@  discard block
 block discarded – undo
1588 1588
 
1589 1589
         $this->currentPersisterContext->rsm->addFieldResult($alias, $columnAlias, $field, $class->getClassName());
1590 1590
 
1591
-        return $property->getType()->convertToPHPValueSQL($sql, $this->platform) . ' AS ' . $columnAlias;
1591
+        return $property->getType()->convertToPHPValueSQL($sql, $this->platform).' AS '.$columnAlias;
1592 1592
     }
1593 1593
 
1594 1594
     /**
@@ -1602,14 +1602,14 @@  discard block
 block discarded – undo
1602 1602
     protected function getSQLTableAlias($tableName, $assocName = '')
1603 1603
     {
1604 1604
         if ($tableName) {
1605
-            $tableName .= '#' . $assocName;
1605
+            $tableName .= '#'.$assocName;
1606 1606
         }
1607 1607
 
1608 1608
         if (isset($this->currentPersisterContext->sqlTableAliases[$tableName])) {
1609 1609
             return $this->currentPersisterContext->sqlTableAliases[$tableName];
1610 1610
         }
1611 1611
 
1612
-        $tableAlias = 't' . $this->currentPersisterContext->sqlAliasCounter++;
1612
+        $tableAlias = 't'.$this->currentPersisterContext->sqlAliasCounter++;
1613 1613
 
1614 1614
         $this->currentPersisterContext->sqlTableAliases[$tableName] = $tableAlias;
1615 1615
 
@@ -1635,7 +1635,7 @@  discard block
 block discarded – undo
1635 1635
         }
1636 1636
 
1637 1637
         $lock  = $this->getLockTablesSql($lockMode);
1638
-        $where = ($conditionSql ? ' WHERE ' . $conditionSql : '') . ' ';
1638
+        $where = ($conditionSql ? ' WHERE '.$conditionSql : '').' ';
1639 1639
         $sql   = 'SELECT 1 '
1640 1640
              . $lock
1641 1641
              . $where
@@ -1658,7 +1658,7 @@  discard block
 block discarded – undo
1658 1658
         $tableName = $this->class->table->getQuotedQualifiedName($this->platform);
1659 1659
 
1660 1660
         return $this->platform->appendLockHint(
1661
-            'FROM ' . $tableName . ' ' . $this->getSQLTableAlias($this->class->getTableName()),
1661
+            'FROM '.$tableName.' '.$this->getSQLTableAlias($this->class->getTableName()),
1662 1662
             $lockMode
1663 1663
         );
1664 1664
     }
@@ -1708,19 +1708,19 @@  discard block
 block discarded – undo
1708 1708
 
1709 1709
             if ($comparison !== null) {
1710 1710
                 // special case null value handling
1711
-                if (($comparison === Comparison::EQ || $comparison === Comparison::IS) && $value ===null) {
1712
-                    $selectedColumns[] = $column . ' IS NULL';
1711
+                if (($comparison === Comparison::EQ || $comparison === Comparison::IS) && $value === null) {
1712
+                    $selectedColumns[] = $column.' IS NULL';
1713 1713
 
1714 1714
                     continue;
1715 1715
                 }
1716 1716
 
1717 1717
                 if ($comparison === Comparison::NEQ && $value === null) {
1718
-                    $selectedColumns[] = $column . ' IS NOT NULL';
1718
+                    $selectedColumns[] = $column.' IS NOT NULL';
1719 1719
 
1720 1720
                     continue;
1721 1721
                 }
1722 1722
 
1723
-                $selectedColumns[] = $column . ' ' . \sprintf(self::$comparisonMap[$comparison], $placeholder);
1723
+                $selectedColumns[] = $column.' '.\sprintf(self::$comparisonMap[$comparison], $placeholder);
1724 1724
 
1725 1725
                 continue;
1726 1726
             }
@@ -1768,7 +1768,7 @@  discard block
 block discarded – undo
1768 1768
             $tableAlias = $this->getSQLTableAlias($property->getTableName());
1769 1769
             $columnName = $this->platform->quoteIdentifier($property->getColumnName());
1770 1770
 
1771
-            return [$tableAlias . '.' . $columnName];
1771
+            return [$tableAlias.'.'.$columnName];
1772 1772
         }
1773 1773
 
1774 1774
         if ($property instanceof AssociationMetadata) {
@@ -1777,7 +1777,7 @@  discard block
 block discarded – undo
1777 1777
 
1778 1778
             // Many-To-Many requires join table check for joinColumn
1779 1779
             if ($owningAssociation instanceof ManyToManyAssociationMetadata) {
1780
-                if (! $owningAssociation->isOwningSide()) {
1780
+                if ( ! $owningAssociation->isOwningSide()) {
1781 1781
                     $owningAssociation = $association;
1782 1782
                 }
1783 1783
 
@@ -1790,10 +1790,10 @@  discard block
 block discarded – undo
1790 1790
                 foreach ($joinColumns as $joinColumn) {
1791 1791
                     $quotedColumnName = $this->platform->quoteIdentifier($joinColumn->getColumnName());
1792 1792
 
1793
-                    $columns[] = $joinTableName . '.' . $quotedColumnName;
1793
+                    $columns[] = $joinTableName.'.'.$quotedColumnName;
1794 1794
                 }
1795 1795
             } else {
1796
-                if (! $owningAssociation->isOwningSide()) {
1796
+                if ( ! $owningAssociation->isOwningSide()) {
1797 1797
                     throw InvalidFindByCall::fromInverseSideUsage(
1798 1798
                         $this->class->getClassName(),
1799 1799
                         $field
@@ -1808,7 +1808,7 @@  discard block
 block discarded – undo
1808 1808
                 foreach ($owningAssociation->getJoinColumns() as $joinColumn) {
1809 1809
                     $quotedColumnName = $this->platform->quoteIdentifier($joinColumn->getColumnName());
1810 1810
 
1811
-                    $columns[] = $tableAlias . '.' . $quotedColumnName;
1811
+                    $columns[] = $tableAlias.'.'.$quotedColumnName;
1812 1812
                 }
1813 1813
             }
1814 1814
 
@@ -1916,7 +1916,7 @@  discard block
 block discarded – undo
1916 1916
                 $value = $value[$targetClass->identifier[0]];
1917 1917
             }
1918 1918
 
1919
-            $criteria[$tableAlias . '.' . $quotedColumnName] = $value;
1919
+            $criteria[$tableAlias.'.'.$quotedColumnName] = $value;
1920 1920
             $parameters[]                                    = [
1921 1921
                 'value' => $value,
1922 1922
                 'field' => $fieldName,
@@ -2001,7 +2001,7 @@  discard block
 block discarded – undo
2001 2001
             case $property instanceof AssociationMetadata:
2002 2002
                 $class = $this->em->getClassMetadata($property->getTargetEntity());
2003 2003
 
2004
-                if (! $property->isOwningSide()) {
2004
+                if ( ! $property->isOwningSide()) {
2005 2005
                     $property = $class->getProperty($property->getMappedBy());
2006 2006
                     $class    = $this->em->getClassMetadata($property->getTargetEntity());
2007 2007
                 }
@@ -2014,7 +2014,7 @@  discard block
 block discarded – undo
2014 2014
                     /** @var JoinColumnMetadata $joinColumn */
2015 2015
                     $referencedColumnName = $joinColumn->getReferencedColumnName();
2016 2016
 
2017
-                    if (! $joinColumn->getType()) {
2017
+                    if ( ! $joinColumn->getType()) {
2018 2018
                         $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $class, $this->em));
2019 2019
                     }
2020 2020
 
@@ -2029,7 +2029,7 @@  discard block
 block discarded – undo
2029 2029
         }
2030 2030
 
2031 2031
         if (\is_array($value)) {
2032
-            return \array_map(static function ($type) {
2032
+            return \array_map(static function($type) {
2033 2033
                 return $type->getBindingType() + Connection::ARRAY_PARAM_OFFSET;
2034 2034
             }, $types);
2035 2035
         }
@@ -2086,7 +2086,7 @@  discard block
 block discarded – undo
2086 2086
      */
2087 2087
     private function getIndividualValue($value)
2088 2088
     {
2089
-        if (! \is_object($value) || ! $this->em->getMetadataFactory()->hasMetadataFor(StaticClassNameConverter::getClass($value))) {
2089
+        if ( ! \is_object($value) || ! $this->em->getMetadataFactory()->hasMetadataFor(StaticClassNameConverter::getClass($value))) {
2090 2090
             return $value;
2091 2091
         }
2092 2092
 
@@ -2100,7 +2100,7 @@  discard block
 block discarded – undo
2100 2100
     {
2101 2101
         $criteria = $this->getIdentifier($entity);
2102 2102
 
2103
-        if (! $criteria) {
2103
+        if ( ! $criteria) {
2104 2104
             return false;
2105 2105
         }
2106 2106
 
@@ -2108,12 +2108,12 @@  discard block
 block discarded – undo
2108 2108
 
2109 2109
         $sql = 'SELECT 1 '
2110 2110
              . $this->getLockTablesSql(null)
2111
-             . ' WHERE ' . $this->getSelectConditionSQL($criteria);
2111
+             . ' WHERE '.$this->getSelectConditionSQL($criteria);
2112 2112
 
2113 2113
         [$params, $types] = $this->expandParameters($criteria);
2114 2114
 
2115 2115
         if ($extraConditions !== null) {
2116
-            $sql                             .= ' AND ' . $this->getSelectConditionCriteriaSQL($extraConditions);
2116
+            $sql                             .= ' AND '.$this->getSelectConditionCriteriaSQL($extraConditions);
2117 2117
             [$criteriaParams, $criteriaTypes] = $this->expandCriteriaParameters($extraConditions);
2118 2118
 
2119 2119
             $params = \array_merge($params, $criteriaParams);
@@ -2123,7 +2123,7 @@  discard block
 block discarded – undo
2123 2123
         $filterSql = $this->generateFilterConditionSQL($this->class, $alias);
2124 2124
 
2125 2125
         if ($filterSql) {
2126
-            $sql .= ' AND ' . $filterSql;
2126
+            $sql .= ' AND '.$filterSql;
2127 2127
         }
2128 2128
 
2129 2129
         return (bool) $this->conn->fetchColumn($sql, $params, 0, $types);
@@ -2136,13 +2136,13 @@  discard block
 block discarded – undo
2136 2136
      */
2137 2137
     protected function getJoinSQLForAssociation(AssociationMetadata $association)
2138 2138
     {
2139
-        if (! $association->isOwningSide()) {
2139
+        if ( ! $association->isOwningSide()) {
2140 2140
             return 'LEFT JOIN';
2141 2141
         }
2142 2142
 
2143 2143
         // if one of the join columns is nullable, return left join
2144 2144
         foreach ($association->getJoinColumns() as $joinColumn) {
2145
-            if (! $joinColumn->isNullable()) {
2145
+            if ( ! $joinColumn->isNullable()) {
2146 2146
                 continue;
2147 2147
             }
2148 2148
 
@@ -2159,7 +2159,7 @@  discard block
 block discarded – undo
2159 2159
      */
2160 2160
     public function getSQLColumnAlias()
2161 2161
     {
2162
-        return $this->platform->getSQLResultCasing('c' . $this->currentPersisterContext->sqlAliasCounter++);
2162
+        return $this->platform->getSQLResultCasing('c'.$this->currentPersisterContext->sqlAliasCounter++);
2163 2163
     }
2164 2164
 
2165 2165
     /**
@@ -2178,13 +2178,13 @@  discard block
 block discarded – undo
2178 2178
             $filterExpr = $filter->addFilterConstraint($targetEntity, $targetTableAlias);
2179 2179
 
2180 2180
             if ($filterExpr !== '') {
2181
-                $filterClauses[] = '(' . $filterExpr . ')';
2181
+                $filterClauses[] = '('.$filterExpr.')';
2182 2182
             }
2183 2183
         }
2184 2184
 
2185 2185
         $sql = \implode(' AND ', $filterClauses);
2186 2186
 
2187
-        return $sql ? '(' . $sql . ')' : ''; // Wrap again to avoid "X or Y and FilterConditionSQL"
2187
+        return $sql ? '('.$sql.')' : ''; // Wrap again to avoid "X or Y and FilterConditionSQL"
2188 2188
     }
2189 2189
 
2190 2190
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 
233 233
         // Check query cache.
234 234
         $queryCache = $this->getQueryCacheDriver();
235
-        if (! ($this->useQueryCache && $queryCache)) {
235
+        if ( ! ($this->useQueryCache && $queryCache)) {
236 236
             $parser = new Parser($this);
237 237
 
238 238
             $this->parserResult = $parser->parse();
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
         foreach ($this->parameters as $parameter) {
368 368
             $key = $parameter->getName();
369 369
 
370
-            if (! isset($paramMappings[$key])) {
370
+            if ( ! isset($paramMappings[$key])) {
371 371
                 throw QueryException::unknownParameter($key);
372 372
             }
373 373
 
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
     public function setLockMode($lockMode)
697 697
     {
698 698
         if (\in_array($lockMode, [LockMode::NONE, LockMode::PESSIMISTIC_READ, LockMode::PESSIMISTIC_WRITE], true)) {
699
-            if (! $this->em->getConnection()->isTransactionActive()) {
699
+            if ( ! $this->em->getConnection()->isTransactionActive()) {
700 700
                 throw TransactionRequiredException::transactionRequired();
701 701
             }
702 702
         }
@@ -737,11 +737,11 @@  discard block
 block discarded – undo
737 737
             ->getName();
738 738
 
739 739
         return \md5(
740
-            $this->getDQL() . \serialize($this->hints) .
741
-            '&platform=' . $platform .
742
-            ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : '') .
743
-            '&firstResult=' . $this->firstResult . '&maxResult=' . $this->maxResults .
744
-            '&hydrationMode=' . $this->hydrationMode . '&types=' . \serialize($this->parsedTypes) . 'DOCTRINE_QUERY_CACHE_SALT'
740
+            $this->getDQL().\serialize($this->hints).
741
+            '&platform='.$platform.
742
+            ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : '').
743
+            '&firstResult='.$this->firstResult.'&maxResult='.$this->maxResults.
744
+            '&hydrationMode='.$this->hydrationMode.'&types='.\serialize($this->parsedTypes).'DOCTRINE_QUERY_CACHE_SALT'
745 745
         );
746 746
     }
747 747
 
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
      */
751 751
     protected function getHash()
752 752
     {
753
-        return \sha1(parent::getHash() . '-' . $this->firstResult . '-' . $this->maxResults);
753
+        return \sha1(parent::getHash().'-'.$this->firstResult.'-'.$this->maxResults);
754 754
     }
755 755
 
756 756
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/ClassMetadataDefinitionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     ) : ClassMetadataDefinition {
31 31
         $definition = $this->createDefinition($className, $parentMetadata);
32 32
 
33
-        if (! \class_exists($definition->metadataClassName, false)) {
33
+        if ( ! \class_exists($definition->metadataClassName, false)) {
34 34
             $metadataClassPath = $this->resolver->resolveMetadataClassPath($className);
35 35
 
36 36
             $this->generatorStrategy->generate($metadataClassPath, $definition, $metadataBuildingContext);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/Autoloader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         // remove namespace separators from remaining class name
47 47
         $fileName = \str_replace('\\', '', $classNameRelativeToMetadataNamespace);
48 48
 
49
-        return $metadataDir . DIRECTORY_SEPARATOR . $fileName . '.php';
49
+        return $metadataDir.DIRECTORY_SEPARATOR.$fileName.'.php';
50 50
     }
51 51
 
52 52
     /**
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     ) : Closure {
64 64
         $metadataNamespace = \ltrim($metadataNamespace, '\\');
65 65
 
66
-        if (! ($notFoundCallback === null || \is_callable($notFoundCallback))) {
66
+        if ( ! ($notFoundCallback === null || \is_callable($notFoundCallback))) {
67 67
             $type = \is_object($notFoundCallback) ? \get_class($notFoundCallback) : \gettype($notFoundCallback);
68 68
 
69 69
             throw new InvalidArgumentException(
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             );
72 72
         }
73 73
 
74
-        $autoloader = static function ($className) use ($metadataDir, $metadataNamespace, $notFoundCallback) {
74
+        $autoloader = static function($className) use ($metadataDir, $metadataNamespace, $notFoundCallback) {
75 75
             if (\strpos($className, $metadataNamespace) === 0) {
76 76
                 $file = Autoloader::resolveFile($metadataDir, $metadataNamespace, $className);
77 77
 
Please login to merge, or discard this patch.
ORM/Mapping/Factory/Strategy/FileWriterClassMetadataGeneratorStrategy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         $this->ensureDirectoryIsReady(\dirname($filePath));
42 42
 
43
-        $tmpFileName = $filePath . '.' . \uniqid('', true);
43
+        $tmpFileName = $filePath.'.'.\uniqid('', true);
44 44
 
45 45
         \file_put_contents($tmpFileName, $sourceCode);
46 46
         @\chmod($tmpFileName, 0664);
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
      */
55 55
     private function ensureDirectoryIsReady(string $directory)
56 56
     {
57
-        if (! \is_dir($directory) && (@\mkdir($directory, 0775, true) === false)) {
57
+        if ( ! \is_dir($directory) && (@\mkdir($directory, 0775, true) === false)) {
58 58
             throw new RuntimeException(\sprintf('Your metadata directory "%s" must be writable', $directory));
59 59
         }
60 60
 
61
-        if (! \is_writable($directory)) {
61
+        if ( ! \is_writable($directory)) {
62 62
             throw new RuntimeException(\sprintf('Your proxy directory "%s" must be writable', $directory));
63 63
         }
64 64
     }
Please login to merge, or discard this patch.
Factory/Strategy/ConditionalFileWriterClassMetadataGeneratorStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         ClassMetadataDefinition $definition,
19 19
         ClassMetadataBuildingContext $metadataBuildingContext
20 20
     ) : void {
21
-        if (! \file_exists($filePath)) {
21
+        if ( ! \file_exists($filePath)) {
22 22
             parent::generate($filePath, $definition, $metadataBuildingContext);
23 23
 
24 24
             return;
Please login to merge, or discard this patch.