@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | $cm = $this->em->getClassMetadata($entityName); |
| 115 | 115 | |
| 116 | - $generateKeys = function (array $entry) use ($cm): EntityCacheKey { |
|
| 116 | + $generateKeys = function(array $entry) use ($cm): EntityCacheKey { |
|
| 117 | 117 | return new EntityCacheKey($cm->rootEntityName, $entry['identifier']); |
| 118 | 118 | }; |
| 119 | 119 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | if ( ! $hasRelation) { |
| 141 | - $result[$index] = $this->uow->createEntity($entityEntry->class, $entityEntry->resolveAssociationEntries($this->em), self::$hints); |
|
| 141 | + $result[$index] = $this->uow->createEntity($entityEntry->class, $entityEntry->resolveAssociationEntries($this->em), self::$hints); |
|
| 142 | 142 | |
| 143 | 143 | continue; |
| 144 | 144 | } |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | continue; |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | - $generateKeys = function ($id) use ($assocMetadata): EntityCacheKey { |
|
| 179 | + $generateKeys = function($id) use ($assocMetadata): EntityCacheKey { |
|
| 180 | 180 | return new EntityCacheKey($assocMetadata->rootEntityName, $id); |
| 181 | 181 | }; |
| 182 | 182 | |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | // root entity association |
| 289 | 289 | if ($rootAlias === $parentAlias) { |
| 290 | 290 | // Cancel put result if association put fail |
| 291 | - if ( ($assocInfo = $this->storeAssociationCache($key, $assoc, $assocValue)) === null) { |
|
| 291 | + if (($assocInfo = $this->storeAssociationCache($key, $assoc, $assocValue)) === null) { |
|
| 292 | 292 | return false; |
| 293 | 293 | } |
| 294 | 294 | |