@@ -70,7 +70,7 @@  | 
                                                    ||
| 70 | 70 | $returnableItems = [];  | 
                                                        
| 71 | 71 | |
| 72 | 72 |          foreach ($keysToRetrieve as $index => $key) { | 
                                                        
| 73 | -            if (! $items[$key] instanceof CacheEntry) { | 
                                                        |
| 73 | +            if ( ! $items[$key] instanceof CacheEntry) { | 
                                                        |
| 74 | 74 | return null;  | 
                                                        
| 75 | 75 | }  | 
                                                        
| 76 | 76 | |
@@ -96,7 +96,7 @@ discard block  | 
                                                    ||
| 96 | 96 |      { | 
                                                        
| 97 | 97 | $entry = $this->cache->fetch($this->getCacheEntryKey($key));  | 
                                                        
| 98 | 98 | |
| 99 | -        if (! $entry instanceof CacheEntry) { | 
                                                        |
| 99 | +        if ( ! $entry instanceof CacheEntry) { | 
                                                        |
| 100 | 100 | return null;  | 
                                                        
| 101 | 101 | }  | 
                                                        
| 102 | 102 | |
@@ -114,7 +114,7 @@ discard block  | 
                                                    ||
| 114 | 114 | $entryKey = $this->getCacheEntryKey($key);  | 
                                                        
| 115 | 115 | $entryValue = $this->cache->fetch($entryKey);  | 
                                                        
| 116 | 116 | |
| 117 | -            if (! $entryValue instanceof CacheEntry) { | 
                                                        |
| 117 | +            if ( ! $entryValue instanceof CacheEntry) { | 
                                                        |
| 118 | 118 | return null;  | 
                                                        
| 119 | 119 | }  | 
                                                        
| 120 | 120 | |
@@ -130,7 +130,7 @@ discard block  | 
                                                    ||
| 130 | 130 | */  | 
                                                        
| 131 | 131 | protected function getCacheEntryKey(CacheKey $key)  | 
                                                        
| 132 | 132 |      { | 
                                                        
| 133 | - return $this->name . self::REGION_KEY_SEPARATOR . $key->hash;  | 
                                                        |
| 133 | + return $this->name.self::REGION_KEY_SEPARATOR.$key->hash;  | 
                                                        |
| 134 | 134 | }  | 
                                                        
| 135 | 135 | |
| 136 | 136 | /**  | 
                                                        
@@ -154,7 +154,7 @@ discard block  | 
                                                    ||
| 154 | 154 | */  | 
                                                        
| 155 | 155 | public function evictAll()  | 
                                                        
| 156 | 156 |      { | 
                                                        
| 157 | -        if (! $this->cache instanceof ClearableCache) { | 
                                                        |
| 157 | +        if ( ! $this->cache instanceof ClearableCache) { | 
                                                        |
| 158 | 158 | throw new \BadMethodCallException(sprintf(  | 
                                                        
| 159 | 159 | 'Clearing all cache entries is not supported by the supplied cache adapter of type %s',  | 
                                                        
| 160 | 160 | get_class($this->cache)  | 
                                                        
@@ -103,7 +103,7 @@ discard block  | 
                                                    ||
| 103 | 103 | public function corruptedDataDoesNotLeakIntoApplicationWhenGettingSingleEntry() : void  | 
                                                        
| 104 | 104 |      { | 
                                                        
| 105 | 105 |          $key1 = new CacheKeyMock('key.1'); | 
                                                        
| 106 | - $this->cache->save($this->region->getName() . '_' . $key1->hash, 'a-very-invalid-value');  | 
                                                        |
| 106 | + $this->cache->save($this->region->getName().'_'.$key1->hash, 'a-very-invalid-value');  | 
                                                        |
| 107 | 107 | |
| 108 | 108 | self::assertTrue($this->region->contains($key1));  | 
                                                        
| 109 | 109 | self::assertNull($this->region->get($key1));  | 
                                                        
@@ -116,7 +116,7 @@ discard block  | 
                                                    ||
| 116 | 116 | public function corruptedDataDoesNotLeakIntoApplicationWhenGettingMultipleEntries() : void  | 
                                                        
| 117 | 117 |      { | 
                                                        
| 118 | 118 |          $key1 = new CacheKeyMock('key.1'); | 
                                                        
| 119 | - $this->cache->save($this->region->getName() . '_' . $key1->hash, 'a-very-invalid-value');  | 
                                                        |
| 119 | + $this->cache->save($this->region->getName().'_'.$key1->hash, 'a-very-invalid-value');  | 
                                                        |
| 120 | 120 | |
| 121 | 121 | self::assertTrue($this->region->contains($key1));  | 
                                                        
| 122 | 122 | self::assertNull($this->region->getMultiple(new CollectionCacheEntry([$key1])));  | 
                                                        
@@ -47,7 +47,7 @@  | 
                                                    ||
| 47 | 47 | public function corruptedDataDoesNotLeakIntoApplication() : void  | 
                                                        
| 48 | 48 |      { | 
                                                        
| 49 | 49 |          $key1 = new CacheKeyMock('key.1'); | 
                                                        
| 50 | - $this->cache->save($this->region->getName() . '_' . $key1->hash, 'a-very-invalid-value');  | 
                                                        |
| 50 | + $this->cache->save($this->region->getName().'_'.$key1->hash, 'a-very-invalid-value');  | 
                                                        |
| 51 | 51 | |
| 52 | 52 | self::assertTrue($this->region->contains($key1));  | 
                                                        
| 53 | 53 | self::assertNull($this->region->getMultiple(new CollectionCacheEntry([$key1])));  | 
                                                        
@@ -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 | }  | 
                                                        
@@ -179,7 +179,7 @@ discard block  | 
                                                    ||
| 179 | 179 | continue;  | 
                                                        
| 180 | 180 | }  | 
                                                        
| 181 | 181 | |
| 182 | -                $generateKeys = function ($id) use ($assocMetadata): EntityCacheKey { | 
                                                        |
| 182 | +                $generateKeys = function($id) use ($assocMetadata): EntityCacheKey { | 
                                                        |
| 183 | 183 | return new EntityCacheKey($assocMetadata->rootEntityName, $id);  | 
                                                        
| 184 | 184 | };  | 
                                                        
| 185 | 185 | |
@@ -271,7 +271,7 @@ discard block  | 
                                                    ||
| 271 | 271 | $rootAlias = key($rsm->aliasMap);  | 
                                                        
| 272 | 272 | $persister = $this->uow->getEntityPersister($entityName);  | 
                                                        
| 273 | 273 | |
| 274 | -        if (! $persister instanceof CachedEntityPersister) { | 
                                                        |
| 274 | +        if ( ! $persister instanceof CachedEntityPersister) { | 
                                                        |
| 275 | 275 | throw CacheException::nonCacheableEntity($entityName);  | 
                                                        
| 276 | 276 | }  | 
                                                        
| 277 | 277 | |
@@ -306,7 +306,7 @@ discard block  | 
                                                    ||
| 306 | 306 | // root entity association  | 
                                                        
| 307 | 307 |                  if ($rootAlias === $parentAlias) { | 
                                                        
| 308 | 308 | // Cancel put result if association put fail  | 
                                                        
| 309 | -                    if ( ($assocInfo = $this->storeAssociationCache($key, $assoc, $assocValue)) === null) { | 
                                                        |
| 309 | +                    if (($assocInfo = $this->storeAssociationCache($key, $assoc, $assocValue)) === null) { | 
                                                        |
| 310 | 310 | return false;  | 
                                                        
| 311 | 311 | }  | 
                                                        
| 312 | 312 | |