Completed
Push — master ( ec265b...65ebad )
by Luís
14s
created
lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Cache;
6 6
 
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
         }
61 61
 
62 62
         foreach ($metadata->getDeclaredPropertiesIterator() as $name => $association) {
63
-            if (! isset($data[$name]) || $association instanceof FieldMetadata) {
63
+            if ( ! isset($data[$name]) || $association instanceof FieldMetadata) {
64 64
                 continue;
65 65
             }
66 66
 
67
-            if (! $association instanceof ToOneAssociationMetadata) {
67
+            if ( ! $association instanceof ToOneAssociationMetadata) {
68 68
                 unset($data[$name]);
69 69
 
70 70
                 continue;
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             $targetClassMetadata = $this->em->getClassMetadata($targetEntity);
75 75
             $targetPersister     = $this->uow->getEntityPersister($targetEntity);
76 76
 
77
-            if (! $association->getCache()) {
77
+            if ( ! $association->getCache()) {
78 78
                 $owningAssociation = ! $association->isOwningSide()
79 79
                     ? $targetClassMetadata->getProperty($association->getMappedBy())
80 80
                     : $association;
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                 continue;
123 123
             }
124 124
 
125
-            if (! $association->isPrimaryKey()) {
125
+            if ( ! $association->isPrimaryKey()) {
126 126
                 $targetClass = StaticClassNameConverter::getClass($data[$name]);
127 127
                 $targetId    = $this->uow->getEntityIdentifier($data[$name]);
128 128
                 $data[$name] = new AssociationCacheEntry($targetClass, $targetId);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
                 ($association instanceof OneToOneAssociationMetadata && ! $association->isOwningSide())
172 172
             );
173 173
 
174
-            if (! $isEagerLoad) {
174
+            if ( ! $isEagerLoad) {
175 175
                 $data[$name] = $this->em->getReference($assocClass, $assocId);
176 176
 
177 177
                 continue;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH7067Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.