Failed Conditions
Pull Request — develop (#6600)
by Mike
62:56
created
lib/Doctrine/ORM/Cache/CacheConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/QueryCacheKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/DefaultQueryCache.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/CacheEntry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/QueryCacheEntry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/LockException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/DefaultCache.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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])) {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/EntityCacheEntry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Region.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.