Failed Conditions
Pull Request — master (#7297)
by Gabriel
13:52
created
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $em          = $this->getHelper('em')->getEntityManager();
56 56
         $cacheDriver = $em->getConfiguration()->getResultCacheImpl();
57 57
 
58
-        if (! $cacheDriver) {
58
+        if ( ! $cacheDriver) {
59 59
             throw new \InvalidArgumentException('No Result cache driver is configured on given EntityManager.');
60 60
         }
61 61
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             $message = $result ? 'Successfully flushed cache entries.' : $message;
78 78
         }
79 79
 
80
-        if (! $result) {
80
+        if ( ! $result) {
81 81
             $ui->error($message);
82 82
 
83 83
             return 1;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $em          = $this->getHelper('em')->getEntityManager();
56 56
         $cacheDriver = $em->getConfiguration()->getQueryCacheImpl();
57 57
 
58
-        if (! $cacheDriver) {
58
+        if ( ! $cacheDriver) {
59 59
             throw new \InvalidArgumentException('No Query cache driver is configured on given EntityManager.');
60 60
         }
61 61
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $message = $result ? 'Successfully flushed cache entries.' : $message;
77 77
         }
78 78
 
79
-        if (! $result) {
79
+        if ( ! $result) {
80 80
             $ui->error($message);
81 81
 
82 82
             return 1;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $em          = $this->getHelper('em')->getEntityManager();
56 56
         $cacheDriver = $em->getConfiguration()->getMetadataCacheImpl();
57 57
 
58
-        if (! $cacheDriver) {
58
+        if ( ! $cacheDriver) {
59 59
             throw new \InvalidArgumentException('No Metadata cache driver is configured on given EntityManager.');
60 60
         }
61 61
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             $message = $result ? 'Successfully flushed cache entries.' : $message;
78 78
         }
79 79
 
80
-        if (! $result) {
80
+        if ( ! $result) {
81 81
             $ui->error($message);
82 82
 
83 83
             return 1;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -85,10 +85,10 @@  discard block
 block discarded – undo
85 85
                 // It's a joined result
86 86
 
87 87
                 $parent = $this->rsm->parentAliasMap[$dqlAlias];
88
-                $path   = $parent . '.' . $dqlAlias;
88
+                $path   = $parent.'.'.$dqlAlias;
89 89
 
90 90
                 // missing parent data, skipping as RIGHT JOIN hydration is not supported.
91
-                if (! isset($nonemptyComponents[$parent])) {
91
+                if ( ! isset($nonemptyComponents[$parent])) {
92 92
                     continue;
93 93
                 }
94 94
 
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
                 if ($this->rsm->isMixed && isset($this->rootAliases[$parent])) {
98 98
                     $first = reset($this->resultPointers);
99 99
                     // TODO: Exception if $key === null ?
100
-                    $baseElement =& $this->resultPointers[$parent][key($first)];
100
+                    $baseElement = & $this->resultPointers[$parent][key($first)];
101 101
                 } elseif (isset($this->resultPointers[$parent])) {
102
-                    $baseElement =& $this->resultPointers[$parent];
102
+                    $baseElement = & $this->resultPointers[$parent];
103 103
                 } else {
104 104
                     unset($this->resultPointers[$dqlAlias]); // Ticket #1228
105 105
 
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
                 $relation      = $parentClass->getProperty($relationAlias);
112 112
 
113 113
                 // Check the type of the relation (many or single-valued)
114
-                if (! $relation instanceof ToOneAssociationMetadata) {
114
+                if ( ! $relation instanceof ToOneAssociationMetadata) {
115 115
                     $oneToOne = false;
116 116
 
117
-                    if (! isset($baseElement[$relationAlias])) {
117
+                    if ( ! isset($baseElement[$relationAlias])) {
118 118
                         $baseElement[$relationAlias] = [];
119 119
                     }
120 120
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                         $index        = $indexExists ? $this->identifierMap[$path][$id[$parent]][$id[$dqlAlias]] : false;
124 124
                         $indexIsValid = $index !== false ? isset($baseElement[$relationAlias][$index]) : false;
125 125
 
126
-                        if (! $indexExists || ! $indexIsValid) {
126
+                        if ( ! $indexExists || ! $indexIsValid) {
127 127
                             $element = $data;
128 128
 
129 129
                             if (isset($this->rsm->indexByMap[$dqlAlias])) {
@@ -140,16 +140,16 @@  discard block
 block discarded – undo
140 140
                 } else {
141 141
                     $oneToOne = true;
142 142
 
143
-                    if (! isset($nonemptyComponents[$dqlAlias]) &&
143
+                    if ( ! isset($nonemptyComponents[$dqlAlias]) &&
144 144
                         ! isset($baseElement[$relationAlias])
145 145
                     ) {
146 146
                         $baseElement[$relationAlias] = null;
147
-                    } elseif (! isset($baseElement[$relationAlias])) {
147
+                    } elseif ( ! isset($baseElement[$relationAlias])) {
148 148
                         $baseElement[$relationAlias] = $data;
149 149
                     }
150 150
                 }
151 151
 
152
-                $coll =& $baseElement[$relationAlias];
152
+                $coll = & $baseElement[$relationAlias];
153 153
 
154 154
                 if (is_array($coll)) {
155 155
                     $this->updateResultPointer($coll, $index, $dqlAlias, $oneToOne);
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 $entityKey                    = $this->rsm->entityMappings[$dqlAlias] ?: 0;
162 162
 
163 163
                 // if this row has a NULL value for the root result id then make it a null result.
164
-                if (! isset($nonemptyComponents[$dqlAlias])) {
164
+                if ( ! isset($nonemptyComponents[$dqlAlias])) {
165 165
                     $result[] = $this->rsm->isMixed
166 166
                         ? [$entityKey => null]
167 167
                         : null;
@@ -198,13 +198,13 @@  discard block
 block discarded – undo
198 198
             }
199 199
         }
200 200
 
201
-        if (! isset($resultKey)) {
201
+        if ( ! isset($resultKey)) {
202 202
             $this->resultCounter++;
203 203
         }
204 204
 
205 205
         // Append scalar values to mixed result sets
206 206
         if (isset($rowData['scalars'])) {
207
-            if (! isset($resultKey)) {
207
+            if ( ! isset($resultKey)) {
208 208
                 // this only ever happens when no object is fetched (scalar result only)
209 209
                 $resultKey = isset($this->rsm->indexByMap['scalars'])
210 210
                     ? $row[$this->rsm->indexByMap['scalars']]
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
         // Append new object to mixed result sets
220 220
         if (isset($rowData['newObjects'])) {
221
-            if (! isset($resultKey)) {
221
+            if ( ! isset($resultKey)) {
222 222
                 $resultKey = $this->resultCounter - 1;
223 223
             }
224 224
 
@@ -260,22 +260,22 @@  discard block
 block discarded – undo
260 260
         }
261 261
 
262 262
         if ($oneToOne) {
263
-            $this->resultPointers[$dqlAlias] =& $coll;
263
+            $this->resultPointers[$dqlAlias] = & $coll;
264 264
 
265 265
             return;
266 266
         }
267 267
 
268 268
         if ($index !== false) {
269
-            $this->resultPointers[$dqlAlias] =& $coll[$index];
269
+            $this->resultPointers[$dqlAlias] = & $coll[$index];
270 270
 
271 271
             return;
272 272
         }
273 273
 
274
-        if (! $coll) {
274
+        if ( ! $coll) {
275 275
             return;
276 276
         }
277 277
 
278 278
         end($coll);
279
-        $this->resultPointers[$dqlAlias] =& $coll[key($coll)];
279
+        $this->resultPointers[$dqlAlias] = & $coll[key($coll)];
280 280
     }
281 281
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     protected function prepare()
55 55
     {
56
-        if (! isset($this->hints[UnitOfWork::HINT_DEFEREAGERLOAD])) {
56
+        if ( ! isset($this->hints[UnitOfWork::HINT_DEFEREAGERLOAD])) {
57 57
             $this->hints[UnitOfWork::HINT_DEFEREAGERLOAD] = true;
58 58
         }
59 59
 
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
 
64 64
             // Remember which associations are "fetch joined", so that we know where to inject
65 65
             // collection stubs or proxies and where not.
66
-            if (! isset($this->rsm->relationMap[$dqlAlias])) {
66
+            if ( ! isset($this->rsm->relationMap[$dqlAlias])) {
67 67
                 continue;
68 68
             }
69 69
 
70 70
             $parent = $this->rsm->parentAliasMap[$dqlAlias];
71 71
 
72
-            if (! isset($this->rsm->aliasMap[$parent])) {
72
+            if ( ! isset($this->rsm->aliasMap[$parent])) {
73 73
                 throw HydrationException::parentObjectOfRelationNotFound($dqlAlias, $parent);
74 74
             }
75 75
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                 $class        = $this->getClassMetadata($className);
96 96
                 $inverseAssoc = $class->getProperty($association->getInversedBy());
97 97
 
98
-                if (! ($inverseAssoc instanceof ToOneAssociationMetadata)) {
98
+                if ( ! ($inverseAssoc instanceof ToOneAssociationMetadata)) {
99 99
                     continue;
100 100
                 }
101 101
 
@@ -161,14 +161,14 @@  discard block
 block discarded – undo
161 161
         $value       = $association->getValue($entity);
162 162
         $oid         = spl_object_id($entity);
163 163
 
164
-        if (! $value instanceof PersistentCollection) {
164
+        if ( ! $value instanceof PersistentCollection) {
165 165
             $value = $association->wrap($entity, $value, $this->em);
166 166
 
167 167
             $association->setValue($entity, $value);
168 168
 
169 169
             $this->uow->setOriginalEntityProperty($oid, $fieldName, $value);
170 170
 
171
-            $this->initializedCollections[$oid . $fieldName] = $value;
171
+            $this->initializedCollections[$oid.$fieldName] = $value;
172 172
         } elseif (isset($this->hints[Query::HINT_REFRESH]) ||
173 173
             (isset($this->hints['fetched'][$parentDqlAlias][$fieldName]) && ! $value->isInitialized())
174 174
         ) {
@@ -177,10 +177,10 @@  discard block
 block discarded – undo
177 177
             $value->setInitialized(true);
178 178
             $value->unwrap()->clear();
179 179
 
180
-            $this->initializedCollections[$oid . $fieldName] = $value;
180
+            $this->initializedCollections[$oid.$fieldName] = $value;
181 181
         } else {
182 182
             // Is already PersistentCollection, and DON'T REFRESH or FETCH-JOIN!
183
-            $this->existingCollections[$oid . $fieldName] = $value;
183
+            $this->existingCollections[$oid.$fieldName] = $value;
184 184
         }
185 185
 
186 186
         return $value;
@@ -203,13 +203,13 @@  discard block
 block discarded – undo
203 203
         if (isset($this->rsm->discriminatorColumns[$dqlAlias])) {
204 204
             $fieldName = $this->rsm->discriminatorColumns[$dqlAlias];
205 205
 
206
-            if (! isset($this->rsm->metaMappings[$fieldName])) {
206
+            if ( ! isset($this->rsm->metaMappings[$fieldName])) {
207 207
                 throw HydrationException::missingDiscriminatorMetaMappingColumn($className, $fieldName, $dqlAlias);
208 208
             }
209 209
 
210 210
             $discrColumn = $this->rsm->metaMappings[$fieldName];
211 211
 
212
-            if (! isset($data[$discrColumn])) {
212
+            if ( ! isset($data[$discrColumn])) {
213 213
                 throw HydrationException::missingDiscriminatorColumn($className, $discrColumn, $dqlAlias);
214 214
             }
215 215
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
             $discrMap           = $this->metadataCache[$className]->discriminatorMap;
221 221
             $discriminatorValue = (string) $data[$discrColumn];
222 222
 
223
-            if (! isset($discrMap[$discriminatorValue])) {
223
+            if ( ! isset($discrMap[$discriminatorValue])) {
224 224
                 throw HydrationException::invalidDiscriminatorValue($discriminatorValue, array_keys($discrMap));
225 225
             }
226 226
 
@@ -296,10 +296,10 @@  discard block
 block discarded – undo
296 296
                 $parentAlias = $this->rsm->parentAliasMap[$dqlAlias];
297 297
                 // we need the $path to save into the identifier map which entities were already
298 298
                 // seen for this parent-child relationship
299
-                $path = $parentAlias . '.' . $dqlAlias;
299
+                $path = $parentAlias.'.'.$dqlAlias;
300 300
 
301 301
                 // We have a RIGHT JOIN result here. Doctrine cannot hydrate RIGHT JOIN Object-Graphs
302
-                if (! isset($nonemptyComponents[$parentAlias])) {
302
+                if ( ! isset($nonemptyComponents[$parentAlias])) {
303 303
                     // TODO: Add special case code where we hydrate the right join objects into identity map at least
304 304
                     continue;
305 305
                 }
@@ -330,15 +330,15 @@  discard block
 block discarded – undo
330 330
                 $oid = spl_object_id($parentObject);
331 331
 
332 332
                 // Check the type of the relation (many or single-valued)
333
-                if (! ($association instanceof ToOneAssociationMetadata)) {
333
+                if ( ! ($association instanceof ToOneAssociationMetadata)) {
334 334
                     // PATH A: Collection-valued association
335 335
                     $reflFieldValue = $association->getValue($parentObject);
336 336
 
337 337
                     if (isset($nonemptyComponents[$dqlAlias])) {
338
-                        $collKey = $oid . $relationField;
338
+                        $collKey = $oid.$relationField;
339 339
                         if (isset($this->initializedCollections[$collKey])) {
340 340
                             $reflFieldValue = $this->initializedCollections[$collKey];
341
-                        } elseif (! isset($this->existingCollections[$collKey])) {
341
+                        } elseif ( ! isset($this->existingCollections[$collKey])) {
342 342
                             $reflFieldValue = $this->initRelatedCollection($parentObject, $parentClass, $relationField, $parentAlias);
343 343
                         }
344 344
 
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
                         $index        = $indexExists ? $this->identifierMap[$path][$id[$parentAlias]][$id[$dqlAlias]] : false;
347 347
                         $indexIsValid = $index !== false ? isset($reflFieldValue[$index]) : false;
348 348
 
349
-                        if (! $indexExists || ! $indexIsValid) {
349
+                        if ( ! $indexExists || ! $indexIsValid) {
350 350
                             if (isset($this->existingCollections[$collKey])) {
351 351
                                 $element = $this->getEntityFromIdentityMap($entityName, $data);
352 352
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
                             // Update result pointer
376 376
                             $this->resultPointers[$dqlAlias] = $reflFieldValue[$index];
377 377
                         }
378
-                    } elseif (! $reflFieldValue) {
378
+                    } elseif ( ! $reflFieldValue) {
379 379
                         $reflFieldValue = $this->initRelatedCollection($parentObject, $parentClass, $relationField, $parentAlias);
380 380
                     } elseif ($reflFieldValue instanceof PersistentCollection && $reflFieldValue->isInitialized() === false) {
381 381
                         $reflFieldValue->setInitialized(true);
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
                     // PATH B: Single-valued association
385 385
                     $reflFieldValue = $association->getValue($parentObject);
386 386
 
387
-                    if (! $reflFieldValue || isset($this->hints[Query::HINT_REFRESH]) ||
387
+                    if ( ! $reflFieldValue || isset($this->hints[Query::HINT_REFRESH]) ||
388 388
                         ($reflFieldValue instanceof GhostObjectInterface && ! $reflFieldValue->isProxyInitialized())) {
389 389
                         // we only need to take action if this value is null,
390 390
                         // we refresh the entity or its an uninitialized proxy.
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
                 $entityKey                    = $this->rsm->entityMappings[$dqlAlias] ?: 0;
446 446
 
447 447
                 // if this row has a NULL value for the root result id then make it a null result.
448
-                if (! isset($nonemptyComponents[$dqlAlias])) {
448
+                if ( ! isset($nonemptyComponents[$dqlAlias])) {
449 449
                     if ($this->rsm->isMixed) {
450 450
                         $result[] = [$entityKey => null];
451 451
                     } else {
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
                 }
458 458
 
459 459
                 // check for existing result from the iterations before
460
-                if (! isset($this->identifierMap[$dqlAlias][$id[$dqlAlias]])) {
460
+                if ( ! isset($this->identifierMap[$dqlAlias][$id[$dqlAlias]])) {
461 461
                     $element = $this->getEntity($data, $dqlAlias);
462 462
 
463 463
                     if ($this->rsm->isMixed) {
@@ -500,13 +500,13 @@  discard block
 block discarded – undo
500 500
             }
501 501
         }
502 502
 
503
-        if (! isset($resultKey)) {
503
+        if ( ! isset($resultKey)) {
504 504
             $this->resultCounter++;
505 505
         }
506 506
 
507 507
         // Append scalar values to mixed result sets
508 508
         if (isset($rowData['scalars'])) {
509
-            if (! isset($resultKey)) {
509
+            if ( ! isset($resultKey)) {
510 510
                 $resultKey = isset($this->rsm->indexByMap['scalars'])
511 511
                     ? $row[$this->rsm->indexByMap['scalars']]
512 512
                     : $this->resultCounter - 1;
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
 
520 520
         // Append new object to mixed result sets
521 521
         if (isset($rowData['newObjects'])) {
522
-            if (! isset($resultKey)) {
522
+            if ( ! isset($resultKey)) {
523 523
                 $resultKey = $this->resultCounter - 1;
524 524
             }
525 525
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/SqlWalker.php 1 patch
Spacing   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -274,10 +274,10 @@  discard block
 block discarded – undo
274 274
      */
275 275
     public function getSQLTableAlias($tableName, $dqlAlias = '')
276 276
     {
277
-        $tableName .= $dqlAlias ? '@[' . $dqlAlias . ']' : '';
277
+        $tableName .= $dqlAlias ? '@['.$dqlAlias.']' : '';
278 278
 
279
-        if (! isset($this->tableAliasMap[$tableName])) {
280
-            $this->tableAliasMap[$tableName] = 't' . $this->tableAliasCounter++;
279
+        if ( ! isset($this->tableAliasMap[$tableName])) {
280
+            $this->tableAliasMap[$tableName] = 't'.$this->tableAliasCounter++;
281 281
         }
282 282
 
283 283
         return $this->tableAliasMap[$tableName];
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
      */
296 296
     public function setSQLTableAlias($tableName, $alias, $dqlAlias = '')
297 297
     {
298
-        $tableName .= $dqlAlias ? '@[' . $dqlAlias . ']' : '';
298
+        $tableName .= $dqlAlias ? '@['.$dqlAlias.']' : '';
299 299
 
300 300
         $this->tableAliasMap[$tableName] = $alias;
301 301
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
      */
310 310
     public function getSQLColumnAlias()
311 311
     {
312
-        return $this->platform->getSQLResultCasing('c' . $this->aliasCounter++);
312
+        return $this->platform->getSQLResultCasing('c'.$this->aliasCounter++);
313 313
     }
314 314
 
315 315
     /**
@@ -336,14 +336,14 @@  discard block
 block discarded – undo
336 336
 
337 337
             // If this is a joined association we must use left joins to preserve the correct result.
338 338
             $sql .= isset($this->queryComponents[$dqlAlias]['relation']) ? ' LEFT ' : ' INNER ';
339
-            $sql .= 'JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';
339
+            $sql .= 'JOIN '.$tableName.' '.$tableAlias.' ON ';
340 340
 
341 341
             $sqlParts = [];
342 342
 
343 343
             foreach ($class->getIdentifierColumns($this->em) as $column) {
344 344
                 $quotedColumnName = $this->platform->quoteIdentifier($column->getColumnName());
345 345
 
346
-                $sqlParts[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;
346
+                $sqlParts[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;
347 347
             }
348 348
 
349 349
             $filterSql = $this->generateFilterConditionSQL($parentClass, $tableAlias);
@@ -367,14 +367,14 @@  discard block
 block discarded – undo
367 367
             $tableName  = $subClass->table->getQuotedQualifiedName($this->platform);
368 368
             $tableAlias = $this->getSQLTableAlias($subClass->getTableName(), $dqlAlias);
369 369
 
370
-            $sql .= ' LEFT JOIN ' . $tableName . ' ' . $tableAlias . ' ON ';
370
+            $sql .= ' LEFT JOIN '.$tableName.' '.$tableAlias.' ON ';
371 371
 
372 372
             $sqlParts = [];
373 373
 
374 374
             foreach ($subClass->getIdentifierColumns($this->em) as $column) {
375 375
                 $quotedColumnName = $this->platform->quoteIdentifier($column->getColumnName());
376 376
 
377
-                $sqlParts[] = $baseTableAlias . '.' . $quotedColumnName . ' = ' . $tableAlias . '.' . $quotedColumnName;
377
+                $sqlParts[] = $baseTableAlias.'.'.$quotedColumnName.' = '.$tableAlias.'.'.$quotedColumnName;
378 378
             }
379 379
 
380 380
             $sql .= implode(' AND ', $sqlParts);
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
             $qComp       = $this->queryComponents[$dqlAlias];
396 396
             $association = $qComp['relation'];
397 397
 
398
-            if (! ($association instanceof ToManyAssociationMetadata)) {
398
+            if ( ! ($association instanceof ToManyAssociationMetadata)) {
399 399
                 continue;
400 400
             }
401 401
 
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
                 $property      = $qComp['metadata']->getProperty($fieldName);
404 404
                 $tableName     = $property->getTableName();
405 405
                 $columnName    = $this->platform->quoteIdentifier($property->getColumnName());
406
-                $orderedColumn = $this->getSQLTableAlias($tableName, $dqlAlias) . '.' . $columnName;
406
+                $orderedColumn = $this->getSQLTableAlias($tableName, $dqlAlias).'.'.$columnName;
407 407
 
408 408
                 // OrderByClause should replace an ordered relation. see - DDC-2475
409 409
                 if (isset($this->orderedColumnsMap[$orderedColumn])) {
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
                 }
412 412
 
413 413
                 $this->orderedColumnsMap[$orderedColumn] = $orientation;
414
-                $orderedColumns[]                        = $orderedColumn . ' ' . $orientation;
414
+                $orderedColumns[]                        = $orderedColumn.' '.$orientation;
415 415
             }
416 416
         }
417 417
 
@@ -451,19 +451,19 @@  discard block
 block discarded – undo
451 451
             $discrColumnType  = $discrColumn->getType();
452 452
             $quotedColumnName = $this->platform->quoteIdentifier($discrColumn->getColumnName());
453 453
             $sqlTableAlias    = $this->useSqlTableAliases
454
-                ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias) . '.'
454
+                ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias).'.'
455 455
                 : '';
456 456
 
457 457
             $sqlParts[] = sprintf(
458 458
                 '%s IN (%s)',
459
-                $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias . $quotedColumnName, $this->platform),
459
+                $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias.$quotedColumnName, $this->platform),
460 460
                 implode(', ', $values)
461 461
             );
462 462
         }
463 463
 
464 464
         $sql = implode(' AND ', $sqlParts);
465 465
 
466
-        return isset($sqlParts[1]) ? '(' . $sql . ')' : $sql;
466
+        return isset($sqlParts[1]) ? '('.$sql.')' : $sql;
467 467
     }
468 468
 
469 469
     /**
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
      */
477 477
     private function generateFilterConditionSQL(ClassMetadata $targetEntity, $targetTableAlias)
478 478
     {
479
-        if (! $this->em->hasFilters()) {
479
+        if ( ! $this->em->hasFilters()) {
480 480
             return '';
481 481
         }
482 482
 
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
             $filterExpr = $filter->addFilterConstraint($targetEntity, $targetTableAlias);
510 510
 
511 511
             if ($filterExpr !== '') {
512
-                $filterClauses[] = '(' . $filterExpr . ')';
512
+                $filterClauses[] = '('.$filterExpr.')';
513 513
             }
514 514
         }
515 515
 
@@ -540,11 +540,11 @@  discard block
 block discarded – undo
540 540
             $sql .= $this->walkOrderByClause($AST->orderByClause);
541 541
         }
542 542
 
543
-        if (! $AST->orderByClause) {
543
+        if ( ! $AST->orderByClause) {
544 544
             $orderBySql = $this->generateOrderedCollectionOrderByItems();
545 545
 
546 546
             if ($orderBySql) {
547
-                $sql .= ' ORDER BY ' . $orderBySql;
547
+                $sql .= ' ORDER BY '.$orderBySql;
548 548
             }
549 549
         }
550 550
 
@@ -557,11 +557,11 @@  discard block
 block discarded – undo
557 557
         }
558 558
 
559 559
         if ($lockMode === LockMode::PESSIMISTIC_READ) {
560
-            return $sql . ' ' . $this->platform->getReadLockSQL();
560
+            return $sql.' '.$this->platform->getReadLockSQL();
561 561
         }
562 562
 
563 563
         if ($lockMode === LockMode::PESSIMISTIC_WRITE) {
564
-            return $sql . ' ' . $this->platform->getWriteLockSQL();
564
+            return $sql.' '.$this->platform->getWriteLockSQL();
565 565
         }
566 566
 
567 567
         if ($lockMode !== LockMode::OPTIMISTIC) {
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
         }
570 570
 
571 571
         foreach ($this->selectedClasses as $selectedClass) {
572
-            if (! $selectedClass['class']->isVersioned()) {
572
+            if ( ! $selectedClass['class']->isVersioned()) {
573 573
                 throw OptimisticLockException::lockFailed($selectedClass['class']->getClassName());
574 574
             }
575 575
         }
@@ -618,7 +618,7 @@  discard block
 block discarded – undo
618 618
         foreach ($class->getIdentifierColumns($this->em) as $column) {
619 619
             $quotedColumnName = $this->platform->quoteIdentifier($column->getColumnName());
620 620
 
621
-            $sqlParts[] = $tableAlias . '.' . $quotedColumnName;
621
+            $sqlParts[] = $tableAlias.'.'.$quotedColumnName;
622 622
         }
623 623
 
624 624
         return implode(', ', $sqlParts);
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
     {
637 637
         $class = $this->queryComponents[$identificationVariable]['metadata'];
638 638
 
639
-        if (! $fieldName) {
639
+        if ( ! $fieldName) {
640 640
             return $this->getSQLTableAlias($class->getTableName(), $identificationVariable);
641 641
         }
642 642
 
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
                 $property  = $class->getProperty($fieldName);
666 666
 
667 667
                 if ($this->useSqlTableAliases) {
668
-                    $sql .= $this->walkIdentificationVariable($dqlAlias, $fieldName) . '.';
668
+                    $sql .= $this->walkIdentificationVariable($dqlAlias, $fieldName).'.';
669 669
                 }
670 670
 
671 671
                 $sql .= $this->platform->quoteIdentifier($property->getColumnName());
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
                 $class       = $this->queryComponents[$dqlAlias]['metadata'];
680 680
                 $association = $class->getProperty($fieldName);
681 681
 
682
-                if (! $association->isOwningSide()) {
682
+                if ( ! $association->isOwningSide()) {
683 683
                     throw QueryException::associationPathInverseSideNotSupported($pathExpr);
684 684
                 }
685 685
 
@@ -693,7 +693,7 @@  discard block
 block discarded – undo
693 693
                 $joinColumn = reset($joinColumns);
694 694
 
695 695
                 if ($this->useSqlTableAliases) {
696
-                    $sql .= $this->getSQLTableAlias($joinColumn->getTableName(), $dqlAlias) . '.';
696
+                    $sql .= $this->getSQLTableAlias($joinColumn->getTableName(), $dqlAlias).'.';
697 697
                 }
698 698
 
699 699
                 $sql .= $this->platform->quoteIdentifier($joinColumn->getColumnName());
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
      */
712 712
     public function walkSelectClause($selectClause)
713 713
     {
714
-        $sql                  = 'SELECT ' . ($selectClause->isDistinct ? 'DISTINCT ' : '');
714
+        $sql                  = 'SELECT '.($selectClause->isDistinct ? 'DISTINCT ' : '');
715 715
         $sqlSelectExpressions = array_filter(array_map([$this, 'walkSelectExpression'], $selectClause->selectExpressions));
716 716
 
717 717
         if ($this->query->getHint(Query::HINT_INTERNAL_ITERATION) === true && $selectClause->isDistinct) {
@@ -754,7 +754,7 @@  discard block
 block discarded – undo
754 754
 
755 755
                 $sqlSelectExpressions[] = sprintf(
756 756
                     '%s AS %s',
757
-                    $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias . '.' . $quotedColumnName, $this->platform),
757
+                    $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias.'.'.$quotedColumnName, $this->platform),
758 758
                     $sqlColumnAlias
759 759
                 );
760 760
 
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
 
765 765
             // Add foreign key columns of class and also parent classes
766 766
             foreach ($class->getDeclaredPropertiesIterator() as $association) {
767
-                if (! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())
767
+                if ( ! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())
768 768
                     || ( ! $addMetaColumns && ! $association->isPrimaryKey())) {
769 769
                     continue;
770 770
                 }
@@ -779,7 +779,7 @@  discard block
 block discarded – undo
779 779
                     $columnAlias          = $this->getSQLColumnAlias();
780 780
                     $sqlTableAlias        = $this->getSQLTableAlias($joinColumn->getTableName(), $dqlAlias);
781 781
 
782
-                    if (! $joinColumn->getType()) {
782
+                    if ( ! $joinColumn->getType()) {
783 783
                         $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
784 784
                     }
785 785
 
@@ -795,7 +795,7 @@  discard block
 block discarded – undo
795 795
             }
796 796
 
797 797
             // Add foreign key columns to SQL, if necessary
798
-            if (! $addMetaColumns) {
798
+            if ( ! $addMetaColumns) {
799 799
                 continue;
800 800
             }
801 801
 
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
                         continue;
810 810
                     }
811 811
 
812
-                    if (! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())) {
812
+                    if ( ! ($association instanceof ToOneAssociationMetadata && $association->isOwningSide())) {
813 813
                         continue;
814 814
                     }
815 815
 
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
                         $columnAlias          = $this->getSQLColumnAlias();
824 824
                         $sqlTableAlias        = $this->getSQLTableAlias($joinColumn->getTableName(), $dqlAlias);
825 825
 
826
-                        if (! $joinColumn->getType()) {
826
+                        if ( ! $joinColumn->getType()) {
827 827
                             $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $this->em));
828 828
                         }
829 829
 
@@ -857,7 +857,7 @@  discard block
 block discarded – undo
857 857
             $sqlParts[] = $this->walkIdentificationVariableDeclaration($identificationVariableDecl);
858 858
         }
859 859
 
860
-        return ' FROM ' . implode(', ', $sqlParts);
860
+        return ' FROM '.implode(', ', $sqlParts);
861 861
     }
862 862
 
863 863
     /**
@@ -932,7 +932,7 @@  discard block
 block discarded – undo
932 932
         $tableAlias = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);
933 933
 
934 934
         $sql = $this->platform->appendLockHint(
935
-            $tableName . ' ' . $tableAlias,
935
+            $tableName.' '.$tableAlias,
936 936
             $this->query->getHint(Query::HINT_LOCK_MODE)
937 937
         );
938 938
 
@@ -942,11 +942,11 @@  discard block
 block discarded – undo
942 942
 
943 943
         $classTableInheritanceJoins = $this->generateClassTableInheritanceJoins($class, $dqlAlias);
944 944
 
945
-        if (! $buildNestedJoins) {
946
-            return $sql . $classTableInheritanceJoins;
945
+        if ( ! $buildNestedJoins) {
946
+            return $sql.$classTableInheritanceJoins;
947 947
         }
948 948
 
949
-        return $classTableInheritanceJoins === '' ? $sql : '(' . $sql . $classTableInheritanceJoins . ')';
949
+        return $classTableInheritanceJoins === '' ? $sql : '('.$sql.$classTableInheritanceJoins.')';
950 950
     }
951 951
 
952 952
     /**
@@ -983,7 +983,7 @@  discard block
 block discarded – undo
983 983
         ;
984 984
 
985 985
         if ($this->query->getHint(Query::HINT_INTERNAL_ITERATION) === true &&
986
-            (! $this->query->getHint(self::HINT_DISTINCT) || isset($this->selectedClasses[$joinedDqlAlias]))) {
986
+            ( ! $this->query->getHint(self::HINT_DISTINCT) || isset($this->selectedClasses[$joinedDqlAlias]))) {
987 987
             if ($association instanceof ToManyAssociationMetadata) {
988 988
                 throw QueryException::iterateWithFetchJoinNotAllowed($owningAssociation);
989 989
             }
@@ -1037,7 +1037,7 @@  discard block
 block discarded – undo
1037 1037
             }
1038 1038
 
1039 1039
             $targetTableJoin = [
1040
-                'table' => $targetTableName . ' ' . $targetTableAlias,
1040
+                'table' => $targetTableName.' '.$targetTableAlias,
1041 1041
                 'condition' => implode(' AND ', $conditions),
1042 1042
             ];
1043 1043
         } elseif ($owningAssociation instanceof ManyToManyAssociationMetadata) {
@@ -1065,7 +1065,7 @@  discard block
 block discarded – undo
1065 1065
                 );
1066 1066
             }
1067 1067
 
1068
-            $sql .= $joinTableName . ' ' . $joinTableAlias . ' ON ' . implode(' AND ', $conditions);
1068
+            $sql .= $joinTableName.' '.$joinTableAlias.' ON '.implode(' AND ', $conditions);
1069 1069
 
1070 1070
             // Join target table
1071 1071
             $sql .= ($joinType === AST\Join::JOIN_TYPE_LEFT || $joinType === AST\Join::JOIN_TYPE_LEFTOUTER) ? ' LEFT JOIN ' : ' INNER JOIN ';
@@ -1104,7 +1104,7 @@  discard block
 block discarded – undo
1104 1104
             }
1105 1105
 
1106 1106
             $targetTableJoin = [
1107
-                'table' => $targetTableName . ' ' . $targetTableAlias,
1107
+                'table' => $targetTableName.' '.$targetTableAlias,
1108 1108
                 'condition' => implode(' AND ', $conditions),
1109 1109
             ];
1110 1110
         } else {
@@ -1112,23 +1112,23 @@  discard block
 block discarded – undo
1112 1112
         }
1113 1113
 
1114 1114
         // Handle WITH clause
1115
-        $withCondition = ($condExpr === null) ? '' : ('(' . $this->walkConditionalExpression($condExpr) . ')');
1115
+        $withCondition = ($condExpr === null) ? '' : ('('.$this->walkConditionalExpression($condExpr).')');
1116 1116
 
1117 1117
         if ($targetClass->inheritanceType === InheritanceType::JOINED) {
1118 1118
             $ctiJoins = $this->generateClassTableInheritanceJoins($targetClass, $joinedDqlAlias);
1119 1119
 
1120 1120
             // If we have WITH condition, we need to build nested joins for target class table and cti joins
1121 1121
             if ($withCondition) {
1122
-                $sql .= '(' . $targetTableJoin['table'] . $ctiJoins . ') ON ' . $targetTableJoin['condition'];
1122
+                $sql .= '('.$targetTableJoin['table'].$ctiJoins.') ON '.$targetTableJoin['condition'];
1123 1123
             } else {
1124
-                $sql .= $targetTableJoin['table'] . ' ON ' . $targetTableJoin['condition'] . $ctiJoins;
1124
+                $sql .= $targetTableJoin['table'].' ON '.$targetTableJoin['condition'].$ctiJoins;
1125 1125
             }
1126 1126
         } else {
1127
-            $sql .= $targetTableJoin['table'] . ' ON ' . $targetTableJoin['condition'];
1127
+            $sql .= $targetTableJoin['table'].' ON '.$targetTableJoin['condition'];
1128 1128
         }
1129 1129
 
1130 1130
         if ($withCondition) {
1131
-            $sql .= ' AND ' . $withCondition;
1131
+            $sql .= ' AND '.$withCondition;
1132 1132
         }
1133 1133
 
1134 1134
         // Apply the indexes
@@ -1162,7 +1162,7 @@  discard block
 block discarded – undo
1162 1162
             $orderByItems = array_merge($orderByItems, (array) $collectionOrderByItems);
1163 1163
         }
1164 1164
 
1165
-        return ' ORDER BY ' . implode(', ', $orderByItems);
1165
+        return ' ORDER BY '.implode(', ', $orderByItems);
1166 1166
     }
1167 1167
 
1168 1168
     /**
@@ -1179,10 +1179,10 @@  discard block
 block discarded – undo
1179 1179
         $this->orderedColumnsMap[$sql] = $type;
1180 1180
 
1181 1181
         if ($expr instanceof AST\Subselect) {
1182
-            return '(' . $sql . ') ' . $type;
1182
+            return '('.$sql.') '.$type;
1183 1183
         }
1184 1184
 
1185
-        return $sql . ' ' . $type;
1185
+        return $sql.' '.$type;
1186 1186
     }
1187 1187
 
1188 1188
     /**
@@ -1190,7 +1190,7 @@  discard block
 block discarded – undo
1190 1190
      */
1191 1191
     public function walkHavingClause($havingClause)
1192 1192
     {
1193
-        return ' HAVING ' . $this->walkConditionalExpression($havingClause->conditionalExpression);
1193
+        return ' HAVING '.$this->walkConditionalExpression($havingClause->conditionalExpression);
1194 1194
     }
1195 1195
 
1196 1196
     /**
@@ -1213,7 +1213,7 @@  discard block
 block discarded – undo
1213 1213
                 $conditions = [];
1214 1214
 
1215 1215
                 if ($join->conditionalExpression) {
1216
-                    $conditions[] = '(' . $this->walkConditionalExpression($join->conditionalExpression) . ')';
1216
+                    $conditions[] = '('.$this->walkConditionalExpression($join->conditionalExpression).')';
1217 1217
                 }
1218 1218
 
1219 1219
                 $isUnconditionalJoin = empty($conditions);
@@ -1238,7 +1238,7 @@  discard block
 block discarded – undo
1238 1238
                 }
1239 1239
 
1240 1240
                 if ($conditions) {
1241
-                    $sql .= $condExprConjunction . implode(' AND ', $conditions);
1241
+                    $sql .= $condExprConjunction.implode(' AND ', $conditions);
1242 1242
                 }
1243 1243
 
1244 1244
                 break;
@@ -1268,7 +1268,7 @@  discard block
 block discarded – undo
1268 1268
             $scalarExpressions[] = $this->walkSimpleArithmeticExpression($scalarExpression);
1269 1269
         }
1270 1270
 
1271
-        $sql .= implode(', ', $scalarExpressions) . ')';
1271
+        $sql .= implode(', ', $scalarExpressions).')';
1272 1272
 
1273 1273
         return $sql;
1274 1274
     }
@@ -1290,7 +1290,7 @@  discard block
 block discarded – undo
1290 1290
             ? $this->conn->quote($nullIfExpression->secondExpression)
1291 1291
             : $this->walkSimpleArithmeticExpression($nullIfExpression->secondExpression);
1292 1292
 
1293
-        return 'NULLIF(' . $firstExpression . ', ' . $secondExpression . ')';
1293
+        return 'NULLIF('.$firstExpression.', '.$secondExpression.')';
1294 1294
     }
1295 1295
 
1296 1296
     /**
@@ -1303,11 +1303,11 @@  discard block
 block discarded – undo
1303 1303
         $sql = 'CASE';
1304 1304
 
1305 1305
         foreach ($generalCaseExpression->whenClauses as $whenClause) {
1306
-            $sql .= ' WHEN ' . $this->walkConditionalExpression($whenClause->caseConditionExpression);
1307
-            $sql .= ' THEN ' . $this->walkSimpleArithmeticExpression($whenClause->thenScalarExpression);
1306
+            $sql .= ' WHEN '.$this->walkConditionalExpression($whenClause->caseConditionExpression);
1307
+            $sql .= ' THEN '.$this->walkSimpleArithmeticExpression($whenClause->thenScalarExpression);
1308 1308
         }
1309 1309
 
1310
-        $sql .= ' ELSE ' . $this->walkSimpleArithmeticExpression($generalCaseExpression->elseScalarExpression) . ' END';
1310
+        $sql .= ' ELSE '.$this->walkSimpleArithmeticExpression($generalCaseExpression->elseScalarExpression).' END';
1311 1311
 
1312 1312
         return $sql;
1313 1313
     }
@@ -1321,14 +1321,14 @@  discard block
 block discarded – undo
1321 1321
      */
1322 1322
     public function walkSimpleCaseExpression($simpleCaseExpression)
1323 1323
     {
1324
-        $sql = 'CASE ' . $this->walkStateFieldPathExpression($simpleCaseExpression->caseOperand);
1324
+        $sql = 'CASE '.$this->walkStateFieldPathExpression($simpleCaseExpression->caseOperand);
1325 1325
 
1326 1326
         foreach ($simpleCaseExpression->simpleWhenClauses as $simpleWhenClause) {
1327
-            $sql .= ' WHEN ' . $this->walkSimpleArithmeticExpression($simpleWhenClause->caseScalarExpression);
1328
-            $sql .= ' THEN ' . $this->walkSimpleArithmeticExpression($simpleWhenClause->thenScalarExpression);
1327
+            $sql .= ' WHEN '.$this->walkSimpleArithmeticExpression($simpleWhenClause->caseScalarExpression);
1328
+            $sql .= ' THEN '.$this->walkSimpleArithmeticExpression($simpleWhenClause->thenScalarExpression);
1329 1329
         }
1330 1330
 
1331
-        $sql .= ' ELSE ' . $this->walkSimpleArithmeticExpression($simpleCaseExpression->elseScalarExpression) . ' END';
1331
+        $sql .= ' ELSE '.$this->walkSimpleArithmeticExpression($simpleCaseExpression->elseScalarExpression).' END';
1332 1332
 
1333 1333
         return $sql;
1334 1334
     }
@@ -1369,7 +1369,7 @@  discard block
 block discarded – undo
1369 1369
 
1370 1370
                 $this->scalarResultAliasMap[$resultAlias] = $columnAlias;
1371 1371
 
1372
-                if (! $hidden) {
1372
+                if ( ! $hidden) {
1373 1373
                     $this->rsm->addScalarResult($columnAlias, $resultAlias, $property->getType());
1374 1374
                     $this->scalarFields[$dqlAlias][$fieldName] = $columnAlias;
1375 1375
                 }
@@ -1390,11 +1390,11 @@  discard block
 block discarded – undo
1390 1390
                 $columnAlias = $this->getSQLColumnAlias();
1391 1391
                 $resultAlias = $selectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;
1392 1392
 
1393
-                $sql .= $expr->dispatch($this) . ' AS ' . $columnAlias;
1393
+                $sql .= $expr->dispatch($this).' AS '.$columnAlias;
1394 1394
 
1395 1395
                 $this->scalarResultAliasMap[$resultAlias] = $columnAlias;
1396 1396
 
1397
-                if (! $hidden) {
1397
+                if ( ! $hidden) {
1398 1398
                     // Conceptually we could resolve field type here by traverse through AST to retrieve field type,
1399 1399
                     // but this is not a feasible solution; assume 'string'.
1400 1400
                     $this->rsm->addScalarResult($columnAlias, $resultAlias, Type::getType('string'));
@@ -1405,11 +1405,11 @@  discard block
 block discarded – undo
1405 1405
                 $columnAlias = $this->getSQLColumnAlias();
1406 1406
                 $resultAlias = $selectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;
1407 1407
 
1408
-                $sql .= '(' . $this->walkSubselect($expr) . ') AS ' . $columnAlias;
1408
+                $sql .= '('.$this->walkSubselect($expr).') AS '.$columnAlias;
1409 1409
 
1410 1410
                 $this->scalarResultAliasMap[$resultAlias] = $columnAlias;
1411 1411
 
1412
-                if (! $hidden) {
1412
+                if ( ! $hidden) {
1413 1413
                     // We cannot resolve field type here; assume 'string'.
1414 1414
                     $this->rsm->addScalarResult($columnAlias, $resultAlias, Type::getType('string'));
1415 1415
                 }
@@ -1433,7 +1433,7 @@  discard block
 block discarded – undo
1433 1433
                 $class       = $queryComp['metadata'];
1434 1434
                 $resultAlias = $selectExpression->fieldIdentificationVariable ?: null;
1435 1435
 
1436
-                if (! isset($this->selectedClasses[$dqlAlias])) {
1436
+                if ( ! isset($this->selectedClasses[$dqlAlias])) {
1437 1437
                     $this->selectedClasses[$dqlAlias] = [
1438 1438
                         'class'       => $class,
1439 1439
                         'dqlAlias'    => $dqlAlias,
@@ -1445,7 +1445,7 @@  discard block
 block discarded – undo
1445 1445
 
1446 1446
                 // Select all fields from the queried class
1447 1447
                 foreach ($class->getDeclaredPropertiesIterator() as $fieldName => $property) {
1448
-                    if (! ($property instanceof FieldMetadata)) {
1448
+                    if ( ! ($property instanceof FieldMetadata)) {
1449 1449
                         continue;
1450 1450
                     }
1451 1451
 
@@ -1480,7 +1480,7 @@  discard block
 block discarded – undo
1480 1480
                         $subClass = $this->em->getClassMetadata($subClassName);
1481 1481
 
1482 1482
                         foreach ($subClass->getDeclaredPropertiesIterator() as $fieldName => $property) {
1483
-                            if (! ($property instanceof FieldMetadata)) {
1483
+                            if ( ! ($property instanceof FieldMetadata)) {
1484 1484
                                 continue;
1485 1485
                             }
1486 1486
 
@@ -1519,7 +1519,7 @@  discard block
 block discarded – undo
1519 1519
      */
1520 1520
     public function walkQuantifiedExpression($qExpr)
1521 1521
     {
1522
-        return ' ' . strtoupper($qExpr->type) . '(' . $this->walkSubselect($qExpr->subselect) . ')';
1522
+        return ' '.strtoupper($qExpr->type).'('.$this->walkSubselect($qExpr->subselect).')';
1523 1523
     }
1524 1524
 
1525 1525
     /**
@@ -1559,7 +1559,7 @@  discard block
 block discarded – undo
1559 1559
             $sqlParts[] = $this->walkIdentificationVariableDeclaration($subselectIdVarDecl);
1560 1560
         }
1561 1561
 
1562
-        return ' FROM ' . implode(', ', $sqlParts);
1562
+        return ' FROM '.implode(', ', $sqlParts);
1563 1563
     }
1564 1564
 
1565 1565
     /**
@@ -1567,7 +1567,7 @@  discard block
 block discarded – undo
1567 1567
      */
1568 1568
     public function walkSimpleSelectClause($simpleSelectClause)
1569 1569
     {
1570
-        return 'SELECT' . ($simpleSelectClause->isDistinct ? ' DISTINCT' : '')
1570
+        return 'SELECT'.($simpleSelectClause->isDistinct ? ' DISTINCT' : '')
1571 1571
             . $this->walkSimpleSelectExpression($simpleSelectClause->simpleSelectExpression);
1572 1572
     }
1573 1573
 
@@ -1600,7 +1600,7 @@  discard block
 block discarded – undo
1600 1600
                     break;
1601 1601
 
1602 1602
                 case ($e instanceof AST\Subselect):
1603
-                    $sqlSelectExpressions[] = '(' . $e->dispatch($this) . ') AS ' . $columnAlias;
1603
+                    $sqlSelectExpressions[] = '('.$e->dispatch($this).') AS '.$columnAlias;
1604 1604
                     break;
1605 1605
 
1606 1606
                 case ($e instanceof AST\PathExpression):
@@ -1609,7 +1609,7 @@  discard block
 block discarded – undo
1609 1609
                     $class     = $qComp['metadata'];
1610 1610
                     $fieldType = $class->getProperty($e->field)->getType();
1611 1611
 
1612
-                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)) . ' AS ' . $columnAlias;
1612
+                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)).' AS '.$columnAlias;
1613 1613
                     break;
1614 1614
 
1615 1615
                 case ($e instanceof AST\Literal):
@@ -1623,11 +1623,11 @@  discard block
 block discarded – undo
1623 1623
                             break;
1624 1624
                     }
1625 1625
 
1626
-                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)) . ' AS ' . $columnAlias;
1626
+                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)).' AS '.$columnAlias;
1627 1627
                     break;
1628 1628
 
1629 1629
                 default:
1630
-                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)) . ' AS ' . $columnAlias;
1630
+                    $sqlSelectExpressions[] = trim((string) $e->dispatch($this)).' AS '.$columnAlias;
1631 1631
                     break;
1632 1632
             }
1633 1633
 
@@ -1660,10 +1660,10 @@  discard block
 block discarded – undo
1660 1660
             case ($expr instanceof AST\Subselect):
1661 1661
                 $alias = $simpleSelectExpression->fieldIdentificationVariable ?: $this->scalarResultCounter++;
1662 1662
 
1663
-                $columnAlias                        = 'sclr' . $this->aliasCounter++;
1663
+                $columnAlias                        = 'sclr'.$this->aliasCounter++;
1664 1664
                 $this->scalarResultAliasMap[$alias] = $columnAlias;
1665 1665
 
1666
-                $sql .= '(' . $this->walkSubselect($expr) . ') AS ' . $columnAlias;
1666
+                $sql .= '('.$this->walkSubselect($expr).') AS '.$columnAlias;
1667 1667
                 break;
1668 1668
 
1669 1669
             case ($expr instanceof AST\Functions\FunctionNode):
@@ -1680,7 +1680,7 @@  discard block
 block discarded – undo
1680 1680
                 $columnAlias                        = $this->getSQLColumnAlias();
1681 1681
                 $this->scalarResultAliasMap[$alias] = $columnAlias;
1682 1682
 
1683
-                $sql .= $expr->dispatch($this) . ' AS ' . $columnAlias;
1683
+                $sql .= $expr->dispatch($this).' AS '.$columnAlias;
1684 1684
                 break;
1685 1685
 
1686 1686
             case ($expr instanceof AST\ParenthesisExpression):
@@ -1700,8 +1700,8 @@  discard block
 block discarded – undo
1700 1700
      */
1701 1701
     public function walkAggregateExpression($aggExpression)
1702 1702
     {
1703
-        return $aggExpression->functionName . '(' . ($aggExpression->isDistinct ? 'DISTINCT ' : '')
1704
-            . $this->walkSimpleArithmeticExpression($aggExpression->pathExpression) . ')';
1703
+        return $aggExpression->functionName.'('.($aggExpression->isDistinct ? 'DISTINCT ' : '')
1704
+            . $this->walkSimpleArithmeticExpression($aggExpression->pathExpression).')';
1705 1705
     }
1706 1706
 
1707 1707
     /**
@@ -1715,7 +1715,7 @@  discard block
 block discarded – undo
1715 1715
             $sqlParts[] = $this->walkGroupByItem($groupByItem);
1716 1716
         }
1717 1717
 
1718
-        return ' GROUP BY ' . implode(', ', $sqlParts);
1718
+        return ' GROUP BY '.implode(', ', $sqlParts);
1719 1719
     }
1720 1720
 
1721 1721
     /**
@@ -1724,7 +1724,7 @@  discard block
 block discarded – undo
1724 1724
     public function walkGroupByItem($groupByItem)
1725 1725
     {
1726 1726
         // StateFieldPathExpression
1727
-        if (! is_string($groupByItem)) {
1727
+        if ( ! is_string($groupByItem)) {
1728 1728
             return $this->walkPathExpression($groupByItem);
1729 1729
         }
1730 1730
 
@@ -1778,7 +1778,7 @@  discard block
 block discarded – undo
1778 1778
     {
1779 1779
         $class     = $this->em->getClassMetadata($deleteClause->abstractSchemaName);
1780 1780
         $tableName = $class->getTableName();
1781
-        $sql       = 'DELETE FROM ' . $class->table->getQuotedQualifiedName($this->platform);
1781
+        $sql       = 'DELETE FROM '.$class->table->getQuotedQualifiedName($this->platform);
1782 1782
 
1783 1783
         $this->setSQLTableAlias($tableName, $tableName, $deleteClause->aliasIdentificationVariable);
1784 1784
 
@@ -1794,12 +1794,12 @@  discard block
 block discarded – undo
1794 1794
     {
1795 1795
         $class     = $this->em->getClassMetadata($updateClause->abstractSchemaName);
1796 1796
         $tableName = $class->getTableName();
1797
-        $sql       = 'UPDATE ' . $class->table->getQuotedQualifiedName($this->platform);
1797
+        $sql       = 'UPDATE '.$class->table->getQuotedQualifiedName($this->platform);
1798 1798
 
1799 1799
         $this->setSQLTableAlias($tableName, $tableName, $updateClause->aliasIdentificationVariable);
1800 1800
         $this->rootAliases[] = $updateClause->aliasIdentificationVariable;
1801 1801
 
1802
-        $sql .= ' SET ' . implode(', ', array_map([$this, 'walkUpdateItem'], $updateClause->updateItems));
1802
+        $sql .= ' SET '.implode(', ', array_map([$this, 'walkUpdateItem'], $updateClause->updateItems));
1803 1803
 
1804 1804
         return $sql;
1805 1805
     }
@@ -1812,7 +1812,7 @@  discard block
 block discarded – undo
1812 1812
         $useTableAliasesBefore    = $this->useSqlTableAliases;
1813 1813
         $this->useSqlTableAliases = false;
1814 1814
 
1815
-        $sql      = $this->walkPathExpression($updateItem->pathExpression) . ' = ';
1815
+        $sql      = $this->walkPathExpression($updateItem->pathExpression).' = ';
1816 1816
         $newValue = $updateItem->newValue;
1817 1817
 
1818 1818
         switch (true) {
@@ -1856,7 +1856,7 @@  discard block
 block discarded – undo
1856 1856
 
1857 1857
             if ($filterClauses) {
1858 1858
                 if ($condSql) {
1859
-                    $condSql = '(' . $condSql . ') AND ';
1859
+                    $condSql = '('.$condSql.') AND ';
1860 1860
                 }
1861 1861
 
1862 1862
                 $condSql .= implode(' AND ', $filterClauses);
@@ -1864,11 +1864,11 @@  discard block
 block discarded – undo
1864 1864
         }
1865 1865
 
1866 1866
         if ($condSql) {
1867
-            return ' WHERE ' . (( ! $discrSql) ? $condSql : '(' . $condSql . ') AND ' . $discrSql);
1867
+            return ' WHERE '.(( ! $discrSql) ? $condSql : '('.$condSql.') AND '.$discrSql);
1868 1868
         }
1869 1869
 
1870 1870
         if ($discrSql) {
1871
-            return ' WHERE ' . $discrSql;
1871
+            return ' WHERE '.$discrSql;
1872 1872
         }
1873 1873
 
1874 1874
         return '';
@@ -1881,7 +1881,7 @@  discard block
 block discarded – undo
1881 1881
     {
1882 1882
         // Phase 2 AST optimization: Skip processing of ConditionalExpression
1883 1883
         // if only one ConditionalTerm is defined
1884
-        if (! ($condExpr instanceof AST\ConditionalExpression)) {
1884
+        if ( ! ($condExpr instanceof AST\ConditionalExpression)) {
1885 1885
             return $this->walkConditionalTerm($condExpr);
1886 1886
         }
1887 1887
 
@@ -1895,7 +1895,7 @@  discard block
 block discarded – undo
1895 1895
     {
1896 1896
         // Phase 2 AST optimization: Skip processing of ConditionalTerm
1897 1897
         // if only one ConditionalFactor is defined
1898
-        if (! ($condTerm instanceof AST\ConditionalTerm)) {
1898
+        if ( ! ($condTerm instanceof AST\ConditionalTerm)) {
1899 1899
             return $this->walkConditionalFactor($condTerm);
1900 1900
         }
1901 1901
 
@@ -1911,7 +1911,7 @@  discard block
 block discarded – undo
1911 1911
         // if only one ConditionalPrimary is defined
1912 1912
         return ( ! ($factor instanceof AST\ConditionalFactor))
1913 1913
             ? $this->walkConditionalPrimary($factor)
1914
-            : ($factor->not ? 'NOT ' : '') . $this->walkConditionalPrimary($factor->conditionalPrimary);
1914
+            : ($factor->not ? 'NOT ' : '').$this->walkConditionalPrimary($factor->conditionalPrimary);
1915 1915
     }
1916 1916
 
1917 1917
     /**
@@ -1926,7 +1926,7 @@  discard block
 block discarded – undo
1926 1926
         if ($primary->isConditionalExpression()) {
1927 1927
             $condExpr = $primary->conditionalExpression;
1928 1928
 
1929
-            return '(' . $this->walkConditionalExpression($condExpr) . ')';
1929
+            return '('.$this->walkConditionalExpression($condExpr).')';
1930 1930
         }
1931 1931
     }
1932 1932
 
@@ -1937,7 +1937,7 @@  discard block
 block discarded – undo
1937 1937
     {
1938 1938
         $sql = $existsExpr->not ? 'NOT ' : '';
1939 1939
 
1940
-        $sql .= 'EXISTS (' . $this->walkSubselect($existsExpr->subselect) . ')';
1940
+        $sql .= 'EXISTS ('.$this->walkSubselect($existsExpr->subselect).')';
1941 1941
 
1942 1942
         return $sql;
1943 1943
     }
@@ -1986,7 +1986,7 @@  discard block
 block discarded – undo
1986 1986
             $targetTableAlias = $this->getSQLTableAlias($targetClass->getTableName());
1987 1987
             $sourceTableAlias = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);
1988 1988
 
1989
-            $sql .= $targetTableName . ' ' . $targetTableAlias . ' WHERE ';
1989
+            $sql .= $targetTableName.' '.$targetTableAlias.' WHERE ';
1990 1990
 
1991 1991
             $sqlParts = [];
1992 1992
 
@@ -2007,7 +2007,7 @@  discard block
 block discarded – undo
2007 2007
                     $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
2008 2008
                 }
2009 2009
 
2010
-                $sqlParts[] = $targetTableAlias . '.' . $quotedTargetColumnName . ' = ' . $entitySql;
2010
+                $sqlParts[] = $targetTableAlias.'.'.$quotedTargetColumnName.' = '.$entitySql;
2011 2011
             }
2012 2012
 
2013 2013
             $sql .= implode(' AND ', $sqlParts);
@@ -2021,7 +2021,7 @@  discard block
 block discarded – undo
2021 2021
             $sourceTableAlias = $this->getSQLTableAlias($class->getTableName(), $dqlAlias);
2022 2022
 
2023 2023
             // join to target table
2024
-            $sql .= $joinTableName . ' ' . $joinTableAlias . ' INNER JOIN ' . $targetTableName . ' ' . $targetTableAlias . ' ON ';
2024
+            $sql .= $joinTableName.' '.$joinTableAlias.' INNER JOIN '.$targetTableName.' '.$targetTableAlias.' ON ';
2025 2025
 
2026 2026
             // join conditions
2027 2027
             $joinSqlParts = [];
@@ -2072,13 +2072,13 @@  discard block
 block discarded – undo
2072 2072
                     $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
2073 2073
                 }
2074 2074
 
2075
-                $sqlParts[] = $targetTableAlias . '.' . $quotedTargetColumnName . ' = ' . $entitySql;
2075
+                $sqlParts[] = $targetTableAlias.'.'.$quotedTargetColumnName.' = '.$entitySql;
2076 2076
             }
2077 2077
 
2078 2078
             $sql .= implode(' AND ', $sqlParts);
2079 2079
         }
2080 2080
 
2081
-        return $sql . ')';
2081
+        return $sql.')';
2082 2082
     }
2083 2083
 
2084 2084
     /**
@@ -2089,7 +2089,7 @@  discard block
 block discarded – undo
2089 2089
         $sizeFunc                           = new AST\Functions\SizeFunction('size');
2090 2090
         $sizeFunc->collectionPathExpression = $emptyCollCompExpr->expression;
2091 2091
 
2092
-        return $sizeFunc->getSql($this) . ($emptyCollCompExpr->not ? ' > 0' : ' = 0');
2092
+        return $sizeFunc->getSql($this).($emptyCollCompExpr->not ? ' > 0' : ' = 0');
2093 2093
     }
2094 2094
 
2095 2095
     /**
@@ -2098,19 +2098,19 @@  discard block
 block discarded – undo
2098 2098
     public function walkNullComparisonExpression($nullCompExpr)
2099 2099
     {
2100 2100
         $expression = $nullCompExpr->expression;
2101
-        $comparison = ' IS' . ($nullCompExpr->not ? ' NOT' : '') . ' NULL';
2101
+        $comparison = ' IS'.($nullCompExpr->not ? ' NOT' : '').' NULL';
2102 2102
 
2103 2103
         // Handle ResultVariable
2104 2104
         if (is_string($expression) && isset($this->queryComponents[$expression]['resultVariable'])) {
2105
-            return $this->walkResultVariable($expression) . $comparison;
2105
+            return $this->walkResultVariable($expression).$comparison;
2106 2106
         }
2107 2107
 
2108 2108
         // Handle InputParameter mapping inclusion to ParserResult
2109 2109
         if ($expression instanceof AST\InputParameter) {
2110
-            return $this->walkInputParameter($expression) . $comparison;
2110
+            return $this->walkInputParameter($expression).$comparison;
2111 2111
         }
2112 2112
 
2113
-        return $expression->dispatch($this) . $comparison;
2113
+        return $expression->dispatch($this).$comparison;
2114 2114
     }
2115 2115
 
2116 2116
     /**
@@ -2118,7 +2118,7 @@  discard block
 block discarded – undo
2118 2118
      */
2119 2119
     public function walkInExpression($inExpr)
2120 2120
     {
2121
-        $sql = $this->walkArithmeticExpression($inExpr->expression) . ($inExpr->not ? ' NOT' : '') . ' IN (';
2121
+        $sql = $this->walkArithmeticExpression($inExpr->expression).($inExpr->not ? ' NOT' : '').' IN (';
2122 2122
 
2123 2123
         $sql .= $inExpr->subselect
2124 2124
             ? $this->walkSubselect($inExpr->subselect)
@@ -2142,12 +2142,12 @@  discard block
 block discarded – undo
2142 2142
         $discrColumnType  = $discrColumn->getType();
2143 2143
         $quotedColumnName = $this->platform->quoteIdentifier($discrColumn->getColumnName());
2144 2144
         $sqlTableAlias    = $this->useSqlTableAliases
2145
-            ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias) . '.'
2145
+            ? $this->getSQLTableAlias($discrColumn->getTableName(), $dqlAlias).'.'
2146 2146
             : '';
2147 2147
 
2148 2148
         return sprintf(
2149 2149
             '%s %sIN %s',
2150
-            $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias . $quotedColumnName, $this->platform),
2150
+            $discrColumnType->convertToDatabaseValueSQL($sqlTableAlias.$quotedColumnName, $this->platform),
2151 2151
             ($instanceOfExpr->not ? 'NOT ' : ''),
2152 2152
             $this->getChildDiscriminatorsFromClassMetadata($discrClass, $instanceOfExpr)
2153 2153
         );
@@ -2194,8 +2194,8 @@  discard block
 block discarded – undo
2194 2194
             $sql .= ' NOT';
2195 2195
         }
2196 2196
 
2197
-        $sql .= ' BETWEEN ' . $this->walkArithmeticExpression($betweenExpr->leftBetweenExpression)
2198
-            . ' AND ' . $this->walkArithmeticExpression($betweenExpr->rightBetweenExpression);
2197
+        $sql .= ' BETWEEN '.$this->walkArithmeticExpression($betweenExpr->leftBetweenExpression)
2198
+            . ' AND '.$this->walkArithmeticExpression($betweenExpr->rightBetweenExpression);
2199 2199
 
2200 2200
         return $sql;
2201 2201
     }
@@ -2210,7 +2210,7 @@  discard block
 block discarded – undo
2210 2210
             ? $this->walkResultVariable($stringExpr)
2211 2211
             : $stringExpr->dispatch($this);
2212 2212
 
2213
-        $sql = $leftExpr . ($likeExpr->not ? ' NOT' : '') . ' LIKE ';
2213
+        $sql = $leftExpr.($likeExpr->not ? ' NOT' : '').' LIKE ';
2214 2214
 
2215 2215
         if ($likeExpr->stringPattern instanceof AST\InputParameter) {
2216 2216
             $sql .= $this->walkInputParameter($likeExpr->stringPattern);
@@ -2223,7 +2223,7 @@  discard block
 block discarded – undo
2223 2223
         }
2224 2224
 
2225 2225
         if ($likeExpr->escapeChar) {
2226
-            $sql .= ' ESCAPE ' . $this->walkLiteral($likeExpr->escapeChar);
2226
+            $sql .= ' ESCAPE '.$this->walkLiteral($likeExpr->escapeChar);
2227 2227
         }
2228 2228
 
2229 2229
         return $sql;
@@ -2250,7 +2250,7 @@  discard block
 block discarded – undo
2250 2250
             ? $leftExpr->dispatch($this)
2251 2251
             : (is_numeric($leftExpr) ? $leftExpr : $this->conn->quote($leftExpr));
2252 2252
 
2253
-        $sql .= ' ' . $compExpr->operator . ' ';
2253
+        $sql .= ' '.$compExpr->operator.' ';
2254 2254
 
2255 2255
         $sql .= ($rightExpr instanceof AST\Node)
2256 2256
             ? $rightExpr->dispatch($this)
@@ -2286,7 +2286,7 @@  discard block
 block discarded – undo
2286 2286
     {
2287 2287
         return $arithmeticExpr->isSimpleArithmeticExpression()
2288 2288
             ? $this->walkSimpleArithmeticExpression($arithmeticExpr->simpleArithmeticExpression)
2289
-            : '(' . $this->walkSubselect($arithmeticExpr->subselect) . ')';
2289
+            : '('.$this->walkSubselect($arithmeticExpr->subselect).')';
2290 2290
     }
2291 2291
 
2292 2292
     /**
@@ -2294,7 +2294,7 @@  discard block
 block discarded – undo
2294 2294
      */
2295 2295
     public function walkSimpleArithmeticExpression($simpleArithmeticExpr)
2296 2296
     {
2297
-        if (! ($simpleArithmeticExpr instanceof AST\SimpleArithmeticExpression)) {
2297
+        if ( ! ($simpleArithmeticExpr instanceof AST\SimpleArithmeticExpression)) {
2298 2298
             return $this->walkArithmeticTerm($simpleArithmeticExpr);
2299 2299
         }
2300 2300
 
@@ -2314,7 +2314,7 @@  discard block
 block discarded – undo
2314 2314
 
2315 2315
         // Phase 2 AST optimization: Skip processing of ArithmeticTerm
2316 2316
         // if only one ArithmeticFactor is defined
2317
-        if (! ($term instanceof AST\ArithmeticTerm)) {
2317
+        if ( ! ($term instanceof AST\ArithmeticTerm)) {
2318 2318
             return $this->walkArithmeticFactor($term);
2319 2319
         }
2320 2320
 
@@ -2334,13 +2334,13 @@  discard block
 block discarded – undo
2334 2334
 
2335 2335
         // Phase 2 AST optimization: Skip processing of ArithmeticFactor
2336 2336
         // if only one ArithmeticPrimary is defined
2337
-        if (! ($factor instanceof AST\ArithmeticFactor)) {
2337
+        if ( ! ($factor instanceof AST\ArithmeticFactor)) {
2338 2338
             return $this->walkArithmeticPrimary($factor);
2339 2339
         }
2340 2340
 
2341 2341
         $sign = $factor->isNegativeSigned() ? '-' : ($factor->isPositiveSigned() ? '+' : '');
2342 2342
 
2343
-        return $sign . $this->walkArithmeticPrimary($factor->arithmeticPrimary);
2343
+        return $sign.$this->walkArithmeticPrimary($factor->arithmeticPrimary);
2344 2344
     }
2345 2345
 
2346 2346
     /**
@@ -2353,7 +2353,7 @@  discard block
 block discarded – undo
2353 2353
     public function walkArithmeticPrimary($primary)
2354 2354
     {
2355 2355
         if ($primary instanceof AST\SimpleArithmeticExpression) {
2356
-            return '(' . $this->walkSimpleArithmeticExpression($primary) . ')';
2356
+            return '('.$this->walkSimpleArithmeticExpression($primary).')';
2357 2357
         }
2358 2358
 
2359 2359
         if ($primary instanceof AST\Node) {
@@ -2411,7 +2411,7 @@  discard block
 block discarded – undo
2411 2411
             $entityClassName = $entityClass->getClassName();
2412 2412
 
2413 2413
             if ($entityClassName !== $rootClass->getClassName()) {
2414
-                if (! $entityClass->getReflectionClass()->isSubclassOf($rootClass->getClassName())) {
2414
+                if ( ! $entityClass->getReflectionClass()->isSubclassOf($rootClass->getClassName())) {
2415 2415
                     throw QueryException::instanceOfUnrelatedClass($entityClassName, $rootClass->getClassName());
2416 2416
                 }
2417 2417
             }
@@ -2423,6 +2423,6 @@  discard block
 block discarded – undo
2423 2423
             $sqlParameterList[] = $this->conn->quote($discriminator);
2424 2424
         }
2425 2425
 
2426
-        return '(' . implode(', ', $sqlParameterList) . ')';
2426
+        return '('.implode(', ', $sqlParameterList).')';
2427 2427
     }
2428 2428
 }
Please login to merge, or discard this patch.