Completed
Push — develop ( 348e78...6434b2 )
by Marco
61:31
created
tests/Doctrine/Tests/ORM/Tools/Pagination/LimitSubqueryOutputWalkerTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         $this->entityManager->getConnection()->setDatabasePlatform(new PostgreSqlPlatform);
85 85
 
86 86
         $query = $this->entityManager->createQuery(
87
-           'SELECT u, g, COUNT(g.id) AS hidden g_quantity FROM Doctrine\Tests\ORM\Tools\Pagination\User u JOIN u.groups g ORDER BY g_quantity, u.id DESC'
87
+            'SELECT u, g, COUNT(g.id) AS hidden g_quantity FROM Doctrine\Tests\ORM\Tools\Pagination\User u JOIN u.groups g ORDER BY g_quantity, u.id DESC'
88 88
         );
89 89
         $limitQuery = clone $query;
90 90
         $limitQuery->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, LimitSubqueryOutputWalker::class);
Please login to merge, or discard this 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\Tools\Pagination;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/BasicInheritanceMappingTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
     {
131 131
         $this->expectException(MappingException::class);
132 132
         $this->expectExceptionMessage(
133
-              'Entity \'Doctrine\Tests\ORM\Mapping\HierarchyBEntity\' has to be part of the discriminator map'
133
+                'Entity \'Doctrine\Tests\ORM\Mapping\HierarchyBEntity\' has to be part of the discriminator map'
134 134
             . ' of \'Doctrine\Tests\ORM\Mapping\HierarchyBase\' to be properly mapped in the inheritance hierarchy.'
135 135
             . ' Alternatively you can make \'Doctrine\Tests\ORM\Mapping\HierarchyBEntity\' an abstract class to'
136 136
             . ' avoid this exception from occurring.'
Please login to merge, or discard this 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\Mapping;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Models/Forum/ForumUser.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,18 +24,18 @@
 block discarded – undo
24 24
     public $avatar;
25 25
 
26 26
     public function getId() {
27
-    	return $this->id;
27
+        return $this->id;
28 28
     }
29 29
 
30 30
     public function getUsername() {
31
-    	return $this->username;
31
+        return $this->username;
32 32
     }
33 33
 
34 34
     public function getAvatar() {
35
-    	return $this->avatar;
35
+        return $this->avatar;
36 36
     }
37 37
 
38 38
     public function setAvatar(ForumAvatar $avatar) {
39
-    	$this->avatar = $avatar;
39
+        $this->avatar = $avatar;
40 40
     }
41 41
 }
Please login to merge, or discard this 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\Models\Forum;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/OrmPerformanceTestCase.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
25 25
 
26 26
         if ($this->maxRunningTime != 0 && $time > $this->maxRunningTime) {
27 27
             $this->fail(
28
-              sprintf(
28
+                sprintf(
29 29
                 'expected running time: <= %s but was: %s',
30 30
 
31 31
                 $this->maxRunningTime,
32 32
                 $time
33
-              )
33
+                )
34 34
             );
35 35
         }
36 36
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 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\Tests;
6 6
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function setMaxRunningTime($maxRunningTime)
50 50
     {
51
-        if (! (is_int($maxRunningTime) && $maxRunningTime >= 0)) {
51
+        if ( ! (is_int($maxRunningTime) && $maxRunningTime >= 0)) {
52 52
             throw new \InvalidArgumentException;
53 53
         }
54 54
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 namespace Doctrine\ORM\Cache;
24 24
 
25 25
 use Doctrine\Common\Util\ClassUtils;
26
-
27 26
 use Doctrine\ORM\Mapping\FetchMode;
28 27
 use Doctrine\ORM\Mapping\FieldMetadata;
29 28
 use Doctrine\ORM\Mapping\OneToOneAssociationMetadata;
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 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
 
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
         $data = array_merge($data, $persister->getIdentifier($entity)); // why update has no identifier values ?
60 60
 
61 61
         foreach ($metadata->getProperties() as $name => $association) {
62
-            if (! isset($data[$name]) || $association instanceof FieldMetadata) {
62
+            if ( ! isset($data[$name]) || $association instanceof FieldMetadata) {
63 63
                 continue;
64 64
             }
65 65
 
66
-            if (! $association instanceof ToOneAssociationMetadata) {
66
+            if ( ! $association instanceof ToOneAssociationMetadata) {
67 67
                 unset($data[$name]);
68 68
 
69 69
                 continue;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $targetClassMetadata = $this->em->getClassMetadata($targetEntity);
74 74
             $targetPersister     = $this->uow->getEntityPersister($targetEntity);
75 75
 
76
-            if (! $association->getCache()) {
76
+            if ( ! $association->getCache()) {
77 77
                 $owningAssociation   = ! $association->isOwningSide()
78 78
                     ? $targetClassMetadata->getProperty($association->getMappedBy())
79 79
                     : $association;
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                 continue;
122 122
             }
123 123
 
124
-            if (! $association->isPrimaryKey()) {
124
+            if ( ! $association->isPrimaryKey()) {
125 125
                 $targetClass = ClassUtils::getClass($data[$name]);
126 126
                 $targetId    = $this->uow->getEntityIdentifier($data[$name]);
127 127
                 $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.
lib/Doctrine/ORM/Cache/Region/DefaultMultiGetRegion.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -45,6 +45,7 @@
 block discarded – undo
45 45
      * {@inheritDoc}
46 46
      *
47 47
      * @param MultiGetCache $cache
48
+     * @param string $name
48 49
      */
49 50
     public function __construct($name, MultiGetCache $cache, $lifetime = 0)
50 51
     {
Please login to merge, or discard this 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\Region;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/EntityManager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -600,7 +600,7 @@
 block discarded – undo
600 600
      * Clears the EntityManager. All entities that are currently managed
601 601
      * by this EntityManager become detached.
602 602
      *
603
-     * @param null $entityName Unused. @todo Remove from ObjectManager.
603
+     * @param string|null $entityName Unused. @todo Remove from ObjectManager.
604 604
      *
605 605
      * @return void
606 606
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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;
6 6
 
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         $class = $this->metadataFactory->getMetadataFor(ltrim($entityName, '\\'));
382 382
         $className = $class->getClassName();
383 383
 
384
-        if (! is_array($id)) {
384
+        if ( ! is_array($id)) {
385 385
             if ($class->isIdentifierComposite()) {
386 386
                 throw ORMInvalidArgumentException::invalidCompositeIdentifier();
387 387
             }
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
      */
801 801
     public function isOpen()
802 802
     {
803
-        return (!$this->closed);
803
+        return ( ! $this->closed);
804 804
     }
805 805
 
806 806
     /**
@@ -911,7 +911,7 @@  discard block
 block discarded – undo
911 911
                 sprintf(
912 912
                     'Invalid $connection argument of type %s given%s.',
913 913
                     is_object($connection) ? get_class($connection) : gettype($connection),
914
-                    is_object($connection) ? '' : ': "' . $connection . '"'
914
+                    is_object($connection) ? '' : ': "'.$connection.'"'
915 915
                 )
916 916
             );
917 917
         }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 
24 24
 use Doctrine\ORM\Mapping\ToOneAssociationMetadata;
25 25
 use PDO;
26
-use Doctrine\ORM\Mapping\ClassMetadata;
27 26
 
28 27
 /**
29 28
  * The ArrayHydrator produces a nested array "graph" that is often (not always)
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 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\Internal\Hydration;
6 6
 
@@ -94,10 +94,10 @@  discard block
 block discarded – undo
94 94
                 // It's a joined result
95 95
 
96 96
                 $parent = $this->rsm->parentAliasMap[$dqlAlias];
97
-                $path   = $parent . '.' . $dqlAlias;
97
+                $path   = $parent.'.'.$dqlAlias;
98 98
 
99 99
                 // missing parent data, skipping as RIGHT JOIN hydration is not supported.
100
-                if ( ! isset($nonemptyComponents[$parent]) ) {
100
+                if ( ! isset($nonemptyComponents[$parent])) {
101 101
                     continue;
102 102
                 }
103 103
 
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
                 if ($this->rsm->isMixed && isset($this->rootAliases[$parent])) {
107 107
                     $first = reset($this->resultPointers);
108 108
                     // TODO: Exception if $key === null ?
109
-                    $baseElement =& $this->resultPointers[$parent][key($first)];
109
+                    $baseElement = & $this->resultPointers[$parent][key($first)];
110 110
                 } else if (isset($this->resultPointers[$parent])) {
111
-                    $baseElement =& $this->resultPointers[$parent];
111
+                    $baseElement = & $this->resultPointers[$parent];
112 112
                 } else {
113 113
                     unset($this->resultPointers[$dqlAlias]); // Ticket #1228
114 114
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 $relation      = $parentClass->getProperty($relationAlias);
121 121
 
122 122
                 // Check the type of the relation (many or single-valued)
123
-                if (! $relation instanceof ToOneAssociationMetadata) {
123
+                if ( ! $relation instanceof ToOneAssociationMetadata) {
124 124
                     $oneToOne = false;
125 125
 
126 126
                     if ( ! isset($baseElement[$relationAlias])) {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                     }
160 160
                 }
161 161
 
162
-                $coll =& $baseElement[$relationAlias];
162
+                $coll = & $baseElement[$relationAlias];
163 163
 
164 164
                 if (is_array($coll)) {
165 165
                     $this->updateResultPointer($coll, $index, $dqlAlias, $oneToOne);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
                 $entityKey = $this->rsm->entityMappings[$dqlAlias] ?: 0;
172 172
 
173 173
                 // if this row has a NULL value for the root result id then make it a null result.
174
-                if ( ! isset($nonemptyComponents[$dqlAlias]) ) {
174
+                if ( ! isset($nonemptyComponents[$dqlAlias])) {
175 175
                     $result[] = $this->rsm->isMixed
176 176
                         ? [$entityKey => null]
177 177
                         : null;
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
                 $resultKey = $this->resultCounter - 1;
233 233
             }
234 234
 
235
-            $scalarCount = (isset($rowData['scalars'])? count($rowData['scalars']): 0);
235
+            $scalarCount = (isset($rowData['scalars']) ? count($rowData['scalars']) : 0);
236 236
 
237 237
             foreach ($rowData['newObjects'] as $objIndex => $newObject) {
238 238
                 $class  = $newObject['class'];
@@ -270,13 +270,13 @@  discard block
 block discarded – undo
270 270
         }
271 271
 
272 272
         if ($oneToOne) {
273
-            $this->resultPointers[$dqlAlias] =& $coll;
273
+            $this->resultPointers[$dqlAlias] = & $coll;
274 274
 
275 275
             return;
276 276
         }
277 277
 
278 278
         if ($index !== false) {
279
-            $this->resultPointers[$dqlAlias] =& $coll[$index];
279
+            $this->resultPointers[$dqlAlias] = & $coll[$index];
280 280
 
281 281
             return;
282 282
         }
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
         }
287 287
 
288 288
         end($coll);
289
-        $this->resultPointers[$dqlAlias] =& $coll[key($coll)];
289
+        $this->resultPointers[$dqlAlias] = & $coll[key($coll)];
290 290
 
291 291
         return;
292 292
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,6 @@
 block discarded – undo
25 25
 use Doctrine\ORM\Mapping\ToManyAssociationMetadata;
26 26
 use Doctrine\ORM\Mapping\ToOneAssociationMetadata;
27 27
 use PDO;
28
-use Doctrine\Common\Collections\ArrayCollection;
29
-use Doctrine\ORM\Event\PostLoadEventDispatcher;
30 28
 use Doctrine\ORM\Mapping\ClassMetadata;
31 29
 use Doctrine\ORM\PersistentCollection;
32 30
 use Doctrine\ORM\Proxy\Proxy;
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 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\Internal\Hydration;
6 6
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     protected function prepare()
70 70
     {
71
-        if (! isset($this->hints[UnitOfWork::HINT_DEFEREAGERLOAD])) {
71
+        if ( ! isset($this->hints[UnitOfWork::HINT_DEFEREAGERLOAD])) {
72 72
             $this->hints[UnitOfWork::HINT_DEFEREAGERLOAD] = true;
73 73
         }
74 74
 
@@ -78,13 +78,13 @@  discard block
 block discarded – undo
78 78
 
79 79
             // Remember which associations are "fetch joined", so that we know where to inject
80 80
             // collection stubs or proxies and where not.
81
-            if (! isset($this->rsm->relationMap[$dqlAlias])) {
81
+            if ( ! isset($this->rsm->relationMap[$dqlAlias])) {
82 82
                 continue;
83 83
             }
84 84
 
85 85
             $parent = $this->rsm->parentAliasMap[$dqlAlias];
86 86
 
87
-            if (! isset($this->rsm->aliasMap[$parent])) {
87
+            if ( ! isset($this->rsm->aliasMap[$parent])) {
88 88
                 throw HydrationException::parentObjectOfRelationNotFound($dqlAlias, $parent);
89 89
             }
90 90
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 $class        = $this->getClassMetadata($className);
111 111
                 $inverseAssoc = $class->getProperty($association->getInversedBy());
112 112
 
113
-                if (! ($inverseAssoc instanceof ToOneAssociationMetadata)) {
113
+                if ( ! ($inverseAssoc instanceof ToOneAssociationMetadata)) {
114 114
                     continue;
115 115
                 }
116 116
 
@@ -176,14 +176,14 @@  discard block
 block discarded – undo
176 176
         $value       = $association->getValue($entity);
177 177
         $oid         = spl_object_hash($entity);
178 178
 
179
-        if (! $value instanceof PersistentCollection) {
179
+        if ( ! $value instanceof PersistentCollection) {
180 180
             $value = $association->wrap($entity, $value, $this->em);
181 181
 
182 182
             $association->setValue($entity, $value);
183 183
 
184 184
             $this->uow->setOriginalEntityProperty($oid, $fieldName, $value);
185 185
 
186
-            $this->initializedCollections[$oid . $fieldName] = $value;
186
+            $this->initializedCollections[$oid.$fieldName] = $value;
187 187
         } else if (
188 188
             isset($this->hints[Query::HINT_REFRESH]) ||
189 189
             (isset($this->hints['fetched'][$parentDqlAlias][$fieldName]) && ! $value->isInitialized())
@@ -193,10 +193,10 @@  discard block
 block discarded – undo
193 193
             $value->setInitialized(true);
194 194
             $value->unwrap()->clear();
195 195
 
196
-            $this->initializedCollections[$oid . $fieldName] = $value;
196
+            $this->initializedCollections[$oid.$fieldName] = $value;
197 197
         } else {
198 198
             // Is already PersistentCollection, and DON'T REFRESH or FETCH-JOIN!
199
-            $this->existingCollections[$oid . $fieldName] = $value;
199
+            $this->existingCollections[$oid.$fieldName] = $value;
200 200
         }
201 201
 
202 202
         return $value;
@@ -314,10 +314,10 @@  discard block
 block discarded – undo
314 314
                 $parentAlias = $this->rsm->parentAliasMap[$dqlAlias];
315 315
                 // we need the $path to save into the identifier map which entities were already
316 316
                 // seen for this parent-child relationship
317
-                $path = $parentAlias . '.' . $dqlAlias;
317
+                $path = $parentAlias.'.'.$dqlAlias;
318 318
 
319 319
                 // We have a RIGHT JOIN result here. Doctrine cannot hydrate RIGHT JOIN Object-Graphs
320
-                if (! isset($nonemptyComponents[$parentAlias])) {
320
+                if ( ! isset($nonemptyComponents[$parentAlias])) {
321 321
                     // TODO: Add special case code where we hydrate the right join objects into identity map at least
322 322
                     continue;
323 323
                 }
@@ -348,15 +348,15 @@  discard block
 block discarded – undo
348 348
                 $oid = spl_object_hash($parentObject);
349 349
 
350 350
                 // Check the type of the relation (many or single-valued)
351
-                if (! ($association instanceof ToOneAssociationMetadata)) {
351
+                if ( ! ($association instanceof ToOneAssociationMetadata)) {
352 352
                     // PATH A: Collection-valued association
353 353
                     $reflFieldValue = $association->getValue($parentObject);
354 354
 
355 355
                     if (isset($nonemptyComponents[$dqlAlias])) {
356
-                        $collKey = $oid . $relationField;
356
+                        $collKey = $oid.$relationField;
357 357
                         if (isset($this->initializedCollections[$collKey])) {
358 358
                             $reflFieldValue = $this->initializedCollections[$collKey];
359
-                        } else if (! isset($this->existingCollections[$collKey])) {
359
+                        } else if ( ! isset($this->existingCollections[$collKey])) {
360 360
                             $reflFieldValue = $this->initRelatedCollection($parentObject, $parentClass, $relationField, $parentAlias);
361 361
                         }
362 362
 
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
                         $index          = $indexExists ? $this->identifierMap[$path][$id[$parentAlias]][$id[$dqlAlias]] : false;
365 365
                         $indexIsValid   = $index !== false ? isset($reflFieldValue[$index]) : false;
366 366
 
367
-                        if (! $indexExists || ! $indexIsValid) {
367
+                        if ( ! $indexExists || ! $indexIsValid) {
368 368
                             if (isset($this->existingCollections[$collKey])) {
369 369
                                 // Collection exists, only look for the element in the identity map.
370 370
                                 if ($element = $this->getEntityFromIdentityMap($entityName, $data)) {
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
                     // PATH B: Single-valued association
401 401
                     $reflFieldValue = $association->getValue($parentObject);
402 402
 
403
-                    if (! $reflFieldValue || isset($this->hints[Query::HINT_REFRESH]) ||
403
+                    if ( ! $reflFieldValue || isset($this->hints[Query::HINT_REFRESH]) ||
404 404
                         ($reflFieldValue instanceof Proxy && ! $reflFieldValue->__isInitialized())) {
405 405
                         // we only need to take action if this value is null,
406 406
                         // we refresh the entity or its an uninitialized proxy.
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
                 $entityKey = $this->rsm->entityMappings[$dqlAlias] ?: 0;
462 462
 
463 463
                 // if this row has a NULL value for the root result id then make it a null result.
464
-                if ( ! isset($nonemptyComponents[$dqlAlias]) ) {
464
+                if ( ! isset($nonemptyComponents[$dqlAlias])) {
465 465
                     if ($this->rsm->isMixed) {
466 466
                         $result[] = [$entityKey => null];
467 467
                     } else {
@@ -517,13 +517,13 @@  discard block
 block discarded – undo
517 517
             }
518 518
         }
519 519
 
520
-        if ( ! isset($resultKey) ) {
520
+        if ( ! isset($resultKey)) {
521 521
             $this->resultCounter++;
522 522
         }
523 523
 
524 524
         // Append scalar values to mixed result sets
525 525
         if (isset($rowData['scalars'])) {
526
-            if ( ! isset($resultKey) ) {
526
+            if ( ! isset($resultKey)) {
527 527
                 $resultKey = (isset($this->rsm->indexByMap['scalars']))
528 528
                     ? $row[$this->rsm->indexByMap['scalars']]
529 529
                     : $this->resultCounter - 1;
@@ -536,19 +536,19 @@  discard block
 block discarded – undo
536 536
 
537 537
         // Append new object to mixed result sets
538 538
         if (isset($rowData['newObjects'])) {
539
-            if ( ! isset($resultKey) ) {
539
+            if ( ! isset($resultKey)) {
540 540
                 $resultKey = $this->resultCounter - 1;
541 541
             }
542 542
 
543 543
 
544
-            $scalarCount = (isset($rowData['scalars'])? count($rowData['scalars']): 0);
544
+            $scalarCount = (isset($rowData['scalars']) ? count($rowData['scalars']) : 0);
545 545
 
546 546
             foreach ($rowData['newObjects'] as $objIndex => $newObject) {
547 547
                 $class  = $newObject['class'];
548 548
                 $args   = $newObject['args'];
549 549
                 $obj    = $class->newInstanceArgs($args);
550 550
 
551
-                if ($scalarCount == 0 && count($rowData['newObjects']) == 1 ) {
551
+                if ($scalarCount == 0 && count($rowData['newObjects']) == 1) {
552 552
                     $result[$resultKey] = $obj;
553 553
 
554 554
                     continue;
Please login to merge, or discard this patch.