@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -declare(strict_types=1); |
|
| 4 | +declare(strict_types = 1); |
|
| 5 | 5 | |
| 6 | 6 | namespace Doctrine\ORM\Cache; |
| 7 | 7 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -declare(strict_types=1); |
|
| 4 | +declare(strict_types = 1); |
|
| 5 | 5 | |
| 6 | 6 | namespace Doctrine\ORM\Cache; |
| 7 | 7 | |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -declare(strict_types=1); |
|
| 4 | +declare(strict_types = 1); |
|
| 5 | 5 | |
| 6 | 6 | namespace Doctrine\ORM\Cache; |
| 7 | 7 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | $cm = $this->em->getClassMetadata($entityName); |
| 102 | 102 | |
| 103 | - $generateKeys = function (array $entry) use ($cm): EntityCacheKey { |
|
| 103 | + $generateKeys = function(array $entry) use ($cm): EntityCacheKey { |
|
| 104 | 104 | return new EntityCacheKey($cm->getRootClassName(), $entry['identifier']); |
| 105 | 105 | }; |
| 106 | 106 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | continue; |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | - $generateKeys = function ($id) use ($assocMetadata): EntityCacheKey { |
|
| 174 | + $generateKeys = function($id) use ($assocMetadata): EntityCacheKey { |
|
| 175 | 175 | return new EntityCacheKey($assocMetadata->getRootClassName(), $id); |
| 176 | 176 | }; |
| 177 | 177 | |
@@ -335,9 +335,9 @@ discard block |
||
| 335 | 335 | $assocIdentifier = $this->uow->getEntityIdentifier($assocValue); |
| 336 | 336 | $entityKey = new EntityCacheKey($assocMetadata->getRootClassName(), $assocIdentifier); |
| 337 | 337 | |
| 338 | - if ((! $assocValue instanceof Proxy && ($key->cacheMode & Cache::MODE_REFRESH)) || ! $assocRegion->contains($entityKey)) { |
|
| 338 | + if (( ! $assocValue instanceof Proxy && ($key->cacheMode & Cache::MODE_REFRESH)) || ! $assocRegion->contains($entityKey)) { |
|
| 339 | 339 | // Entity put fail |
| 340 | - if (! $assocPersister->storeEntityCache($assocValue, $entityKey)) { |
|
| 340 | + if ( ! $assocPersister->storeEntityCache($assocValue, $entityKey)) { |
|
| 341 | 341 | return null; |
| 342 | 342 | } |
| 343 | 343 | } |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -declare(strict_types=1); |
|
| 4 | +declare(strict_types = 1); |
|
| 5 | 5 | |
| 6 | 6 | namespace Doctrine\ORM\Cache; |
| 7 | 7 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -declare(strict_types=1); |
|
| 4 | +declare(strict_types = 1); |
|
| 5 | 5 | |
| 6 | 6 | namespace Doctrine\ORM\Cache; |
| 7 | 7 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -declare(strict_types=1); |
|
| 4 | +declare(strict_types = 1); |
|
| 5 | 5 | |
| 6 | 6 | namespace Doctrine\ORM\Cache; |
| 7 | 7 | |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -declare(strict_types=1); |
|
| 4 | +declare(strict_types = 1); |
|
| 5 | 5 | |
| 6 | 6 | namespace Doctrine\ORM\Cache; |
| 7 | 7 | |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | |
| 206 | 206 | foreach ($metadatas as $metadata) { |
| 207 | 207 | foreach ($metadata->getProperties() as $association) { |
| 208 | - if (! $association instanceof ToManyAssociationMetadata) { |
|
| 208 | + if ( ! $association instanceof ToManyAssociationMetadata) { |
|
| 209 | 209 | continue; |
| 210 | 210 | } |
| 211 | 211 | |
@@ -262,8 +262,7 @@ discard block |
||
| 262 | 262 | public function getQueryCache($regionName = null) |
| 263 | 263 | { |
| 264 | 264 | if ($regionName === null) { |
| 265 | - return $this->defaultQueryCache ?: |
|
| 266 | - $this->defaultQueryCache = $this->cacheFactory->buildQueryCache($this->em); |
|
| 265 | + return $this->defaultQueryCache ?: $this->defaultQueryCache = $this->cacheFactory->buildQueryCache($this->em); |
|
| 267 | 266 | } |
| 268 | 267 | |
| 269 | 268 | if ( ! isset($this->queryCaches[$regionName])) { |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -declare(strict_types=1); |
|
| 4 | +declare(strict_types = 1); |
|
| 5 | 5 | |
| 6 | 6 | namespace Doctrine\ORM\Cache; |
| 7 | 7 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -declare(strict_types=1); |
|
| 4 | +declare(strict_types = 1); |
|
| 5 | 5 | |
| 6 | 6 | namespace Doctrine\ORM\Cache; |
| 7 | 7 | |