@@ -204,7 +204,7 @@ discard block  | 
                                                    ||
| 204 | 204 | $class->reflFields[$fieldName]->setValue($entity, $value);  | 
                                                        
| 205 | 205 | $this->_uow->setOriginalEntityProperty($oid, $fieldName, $value);  | 
                                                        
| 206 | 206 | |
| 207 | - $this->initializedCollections[$oid . $fieldName] = $value;  | 
                                                        |
| 207 | + $this->initializedCollections[$oid.$fieldName] = $value;  | 
                                                        |
| 208 | 208 | } else if (  | 
                                                        
| 209 | 209 | isset($this->_hints[Query::HINT_REFRESH]) ||  | 
                                                        
| 210 | 210 | isset($this->_hints['fetched'][$parentDqlAlias][$fieldName]) &&  | 
                                                        
@@ -215,10 +215,10 @@ discard block  | 
                                                    ||
| 215 | 215 | $value->setInitialized(true);  | 
                                                        
| 216 | 216 | $value->unwrap()->clear();  | 
                                                        
| 217 | 217 | |
| 218 | - $this->initializedCollections[$oid . $fieldName] = $value;  | 
                                                        |
| 218 | + $this->initializedCollections[$oid.$fieldName] = $value;  | 
                                                        |
| 219 | 219 |          } else { | 
                                                        
| 220 | 220 | // Is already PersistentCollection, and DON'T REFRESH or FETCH-JOIN!  | 
                                                        
| 221 | - $this->existingCollections[$oid . $fieldName] = $value;  | 
                                                        |
| 221 | + $this->existingCollections[$oid.$fieldName] = $value;  | 
                                                        |
| 222 | 222 | }  | 
                                                        
| 223 | 223 | |
| 224 | 224 | return $value;  | 
                                                        
@@ -284,11 +284,11 @@ discard block  | 
                                                    ||
| 284 | 284 | }  | 
                                                        
| 285 | 285 | |
| 286 | 286 | $idKeys = array_flip($idColumns);  | 
                                                        
| 287 | -        $idValues = array_intersect_key(array_filter($data, function ($idValue) { return null !== $idValue; }), $idKeys); | 
                                                        |
| 287 | +        $idValues = array_intersect_key(array_filter($data, function($idValue) { return null !== $idValue; }), $idKeys); | 
                                                        |
| 288 | 288 | |
| 289 | 289 | |
| 290 | 290 |          if (count($idValues) === count($idKeys)) { | 
                                                        
| 291 | -            if (! $this->getEntityFromIdentityMap($className, $data)) { | 
                                                        |
| 291 | +            if ( ! $this->getEntityFromIdentityMap($className, $data)) { | 
                                                        |
| 292 | 292 | $entity = $this->_uow->createEntity($className, $data, $this->_hints);  | 
                                                        
| 293 | 293 | |
| 294 | 294 | $this->createdEntities[\spl_object_hash($entity)] = true;  | 
                                                        
@@ -322,7 +322,7 @@ discard block  | 
                                                    ||
| 322 | 322 | $idHash = '';  | 
                                                        
| 323 | 323 | |
| 324 | 324 |              foreach ($class->identifier as $fieldName) { | 
                                                        
| 325 | - $idHash .= ' ' . (isset($class->associationMappings[$fieldName])  | 
                                                        |
| 325 | + $idHash .= ' '.(isset($class->associationMappings[$fieldName])  | 
                                                        |
| 326 | 326 | ? $data[$class->associationMappings[$fieldName]['joinColumns'][0]['name']]  | 
                                                        
| 327 | 327 | : $data[$fieldName]);  | 
                                                        
| 328 | 328 | }  | 
                                                        
@@ -380,7 +380,7 @@ discard block  | 
                                                    ||
| 380 | 380 | $parentAlias = $this->_rsm->parentAliasMap[$dqlAlias];  | 
                                                        
| 381 | 381 | // we need the $path to save into the identifier map which entities were already  | 
                                                        
| 382 | 382 | // seen for this parent-child relationship  | 
                                                        
| 383 | - $path = $parentAlias . '.' . $dqlAlias;  | 
                                                        |
| 383 | + $path = $parentAlias.'.'.$dqlAlias;  | 
                                                        |
| 384 | 384 | |
| 385 | 385 | // We have a RIGHT JOIN result here. Doctrine cannot hydrate RIGHT JOIN Object-Graphs  | 
                                                        
| 386 | 386 |                  if ( ! isset($nonemptyComponents[$parentAlias])) { | 
                                                        
@@ -420,7 +420,7 @@ discard block  | 
                                                    ||
| 420 | 420 | $reflFieldValue = $reflField->getValue($parentObject);  | 
                                                        
| 421 | 421 | |
| 422 | 422 |                      if (isset($nonemptyComponents[$dqlAlias])) { | 
                                                        
| 423 | - $collKey = $oid . $relationField;  | 
                                                        |
| 423 | + $collKey = $oid.$relationField;  | 
                                                        |
| 424 | 424 |                          if (isset($this->initializedCollections[$collKey])) { | 
                                                        
| 425 | 425 | $reflFieldValue = $this->initializedCollections[$collKey];  | 
                                                        
| 426 | 426 |                          } else if ( ! isset($this->existingCollections[$collKey])) { | 
                                                        
@@ -514,7 +514,7 @@ discard block  | 
                                                    ||
| 514 | 514 | $entityKey = $this->_rsm->entityMappings[$dqlAlias] ?: 0;  | 
                                                        
| 515 | 515 | |
| 516 | 516 | // if this row has a NULL value for the root result id then make it a null result.  | 
                                                        
| 517 | -                if ( ! isset($nonemptyComponents[$dqlAlias]) ) { | 
                                                        |
| 517 | +                if ( ! isset($nonemptyComponents[$dqlAlias])) { | 
                                                        |
| 518 | 518 |                      if ($this->_rsm->isMixed) { | 
                                                        
| 519 | 519 | $result[] = [$entityKey => null];  | 
                                                        
| 520 | 520 |                      } else { | 
                                                        
@@ -570,13 +570,13 @@ discard block  | 
                                                    ||
| 570 | 570 | }  | 
                                                        
| 571 | 571 | }  | 
                                                        
| 572 | 572 | |
| 573 | -        if ( ! isset($resultKey) ) { | 
                                                        |
| 573 | +        if ( ! isset($resultKey)) { | 
                                                        |
| 574 | 574 | $this->resultCounter++;  | 
                                                        
| 575 | 575 | }  | 
                                                        
| 576 | 576 | |
| 577 | 577 | // Append scalar values to mixed result sets  | 
                                                        
| 578 | 578 |          if (isset($rowData['scalars'])) { | 
                                                        
| 579 | -            if ( ! isset($resultKey) ) { | 
                                                        |
| 579 | +            if ( ! isset($resultKey)) { | 
                                                        |
| 580 | 580 | $resultKey = (isset($this->_rsm->indexByMap['scalars']))  | 
                                                        
| 581 | 581 | ? $row[$this->_rsm->indexByMap['scalars']]  | 
                                                        
| 582 | 582 | : $this->resultCounter - 1;  | 
                                                        
@@ -589,19 +589,19 @@ discard block  | 
                                                    ||
| 589 | 589 | |
| 590 | 590 | // Append new object to mixed result sets  | 
                                                        
| 591 | 591 |          if (isset($rowData['newObjects'])) { | 
                                                        
| 592 | -            if ( ! isset($resultKey) ) { | 
                                                        |
| 592 | +            if ( ! isset($resultKey)) { | 
                                                        |
| 593 | 593 | $resultKey = $this->resultCounter - 1;  | 
                                                        
| 594 | 594 | }  | 
                                                        
| 595 | 595 | |
| 596 | 596 | |
| 597 | - $scalarCount = (isset($rowData['scalars'])? count($rowData['scalars']): 0);  | 
                                                        |
| 597 | + $scalarCount = (isset($rowData['scalars']) ? count($rowData['scalars']) : 0);  | 
                                                        |
| 598 | 598 | |
| 599 | 599 |              foreach ($rowData['newObjects'] as $objIndex => $newObject) { | 
                                                        
| 600 | 600 | $class = $newObject['class'];  | 
                                                        
| 601 | 601 | $args = $newObject['args'];  | 
                                                        
| 602 | 602 | $obj = $class->newInstanceArgs($args);  | 
                                                        
| 603 | 603 | |
| 604 | -                if ($scalarCount == 0 && count($rowData['newObjects']) == 1 ) { | 
                                                        |
| 604 | +                if ($scalarCount == 0 && count($rowData['newObjects']) == 1) { | 
                                                        |
| 605 | 605 | $result[$resultKey] = $obj;  | 
                                                        
| 606 | 606 | |
| 607 | 607 | continue;  |