@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | $cm = $this->em->getClassMetadata($entityName); |
119 | 119 | |
120 | - $generateKeys = static function (array $entry) use ($cm) : EntityCacheKey { |
|
120 | + $generateKeys = static function(array $entry) use ($cm) : EntityCacheKey { |
|
121 | 121 | return new EntityCacheKey($cm->rootEntityName, $entry['identifier']); |
122 | 122 | }; |
123 | 123 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | foreach ($cacheEntry->result as $index => $entry) { |
129 | 129 | $entityEntry = $entries[$index] ?? null; |
130 | 130 | |
131 | - if (! $entityEntry instanceof EntityCacheEntry) { |
|
131 | + if ( ! $entityEntry instanceof EntityCacheEntry) { |
|
132 | 132 | if ($this->cacheLogger !== null) { |
133 | 133 | $this->cacheLogger->entityCacheMiss($regionName, $cacheKeys->identifiers[$index]); |
134 | 134 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | } |
142 | 142 | |
143 | 143 | if ( ! $hasRelation) { |
144 | - $result[$index] = $this->uow->createEntity($entityEntry->class, $entityEntry->resolveAssociationEntries($this->em), self::$hints); |
|
144 | + $result[$index] = $this->uow->createEntity($entityEntry->class, $entityEntry->resolveAssociationEntries($this->em), self::$hints); |
|
145 | 145 | |
146 | 146 | continue; |
147 | 147 | } |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | continue; |
182 | 182 | } |
183 | 183 | |
184 | - $generateKeys = function ($id) use ($assocMetadata): EntityCacheKey { |
|
184 | + $generateKeys = function($id) use ($assocMetadata): EntityCacheKey { |
|
185 | 185 | return new EntityCacheKey($assocMetadata->rootEntityName, $id); |
186 | 186 | }; |
187 | 187 | |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | $rootAlias = key($rsm->aliasMap); |
274 | 274 | $persister = $this->uow->getEntityPersister($entityName); |
275 | 275 | |
276 | - if (! $persister instanceof CachedEntityPersister) { |
|
276 | + if ( ! $persister instanceof CachedEntityPersister) { |
|
277 | 277 | throw CacheException::nonCacheableEntity($entityName); |
278 | 278 | } |
279 | 279 | |
@@ -282,8 +282,8 @@ discard block |
||
282 | 282 | $cm = $this->em->getClassMetadata($entityName); |
283 | 283 | |
284 | 284 | foreach ($result as $index => $entity) { |
285 | - $identifier = $this->uow->getEntityIdentifier($entity); |
|
286 | - $entityKey = new EntityCacheKey($cm->getMetadataValue('rootEntityName'), $identifier); |
|
285 | + $identifier = $this->uow->getEntityIdentifier($entity); |
|
286 | + $entityKey = new EntityCacheKey($cm->getMetadataValue('rootEntityName'), $identifier); |
|
287 | 287 | |
288 | 288 | if (($key->cacheMode & Cache::MODE_REFRESH) || ! $region->contains($entityKey)) { |
289 | 289 | // Cancel put result if entity put fail |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | // root entity association |
311 | 311 | if ($rootAlias === $parentAlias) { |
312 | 312 | // Cancel put result if association put fail |
313 | - if ( ($assocInfo = $this->storeAssociationCache($key, $assoc, $assocValue)) === null) { |
|
313 | + if (($assocInfo = $this->storeAssociationCache($key, $assoc, $assocValue)) === null) { |
|
314 | 314 | return false; |
315 | 315 | } |
316 | 316 |