@@ -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 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | foreach ($cacheEntry->result as $index => $entry) { |
125 | 125 | $entityEntry = is_array($entries) && array_key_exists($index, $entries) ? $entries[$index] : null; |
126 | 126 | |
127 | - if (!$entityEntry) { |
|
127 | + if ( ! $entityEntry) { |
|
128 | 128 | if ($this->cacheLogger !== null) { |
129 | 129 | $this->cacheLogger->entityCacheMiss($regionName, $cacheKeys->identifiers[$index]); |
130 | 130 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | } |
138 | 138 | |
139 | 139 | if ( ! $hasRelation) { |
140 | - $result[$index] = $this->uow->createEntity($entityEntry->class, $entityEntry->resolveAssociationEntries($this->em), self::$hints); |
|
140 | + $result[$index] = $this->uow->createEntity($entityEntry->class, $entityEntry->resolveAssociationEntries($this->em), self::$hints); |
|
141 | 141 | |
142 | 142 | continue; |
143 | 143 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | continue; |
176 | 176 | } |
177 | 177 | |
178 | - $generateKeys = function ($id) use ($assocMetadata): EntityCacheKey { |
|
178 | + $generateKeys = function($id) use ($assocMetadata): EntityCacheKey { |
|
179 | 179 | return new EntityCacheKey($assocMetadata->rootEntityName, $id); |
180 | 180 | }; |
181 | 181 | |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | // root entity association |
303 | 303 | if ($rootAlias === $parentAlias) { |
304 | 304 | // Cancel put result if association put fail |
305 | - if ( ($assocInfo = $this->storeAssociationCache($key, $assoc, $assocValue)) === null) { |
|
305 | + if (($assocInfo = $this->storeAssociationCache($key, $assoc, $assocValue)) === null) { |
|
306 | 306 | return false; |
307 | 307 | } |
308 | 308 |