@@ -1,6 +1,6 @@ discard block |
||
| 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 | |
@@ -96,10 +96,10 @@ discard block |
||
| 96 | 96 | // It's a joined result |
| 97 | 97 | |
| 98 | 98 | $parent = $this->rsm->parentAliasMap[$dqlAlias]; |
| 99 | - $path = $parent . '.' . $dqlAlias; |
|
| 99 | + $path = $parent.'.'.$dqlAlias; |
|
| 100 | 100 | |
| 101 | 101 | // missing parent data, skipping as RIGHT JOIN hydration is not supported. |
| 102 | - if ( ! isset($nonemptyComponents[$parent]) ) { |
|
| 102 | + if ( ! isset($nonemptyComponents[$parent])) { |
|
| 103 | 103 | continue; |
| 104 | 104 | } |
| 105 | 105 | |
@@ -108,9 +108,9 @@ discard block |
||
| 108 | 108 | if ($this->rsm->isMixed && isset($this->rootAliases[$parent])) { |
| 109 | 109 | $first = reset($this->resultPointers); |
| 110 | 110 | // TODO: Exception if $key === null ? |
| 111 | - $baseElement =& $this->resultPointers[$parent][key($first)]; |
|
| 111 | + $baseElement = & $this->resultPointers[$parent][key($first)]; |
|
| 112 | 112 | } elseif (isset($this->resultPointers[$parent])) { |
| 113 | - $baseElement =& $this->resultPointers[$parent]; |
|
| 113 | + $baseElement = & $this->resultPointers[$parent]; |
|
| 114 | 114 | } else { |
| 115 | 115 | unset($this->resultPointers[$dqlAlias]); // Ticket #1228 |
| 116 | 116 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | $relation = $parentClass->getProperty($relationAlias); |
| 123 | 123 | |
| 124 | 124 | // Check the type of the relation (many or single-valued) |
| 125 | - if (! $relation instanceof ToOneAssociationMetadata) { |
|
| 125 | + if ( ! $relation instanceof ToOneAssociationMetadata) { |
|
| 126 | 126 | $oneToOne = false; |
| 127 | 127 | |
| 128 | 128 | if ( ! isset($baseElement[$relationAlias])) { |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | } |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | - $coll =& $baseElement[$relationAlias]; |
|
| 164 | + $coll = & $baseElement[$relationAlias]; |
|
| 165 | 165 | |
| 166 | 166 | if (is_array($coll)) { |
| 167 | 167 | $this->updateResultPointer($coll, $index, $dqlAlias, $oneToOne); |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | $entityKey = $this->rsm->entityMappings[$dqlAlias] ?: 0; |
| 174 | 174 | |
| 175 | 175 | // if this row has a NULL value for the root result id then make it a null result. |
| 176 | - if ( ! isset($nonemptyComponents[$dqlAlias]) ) { |
|
| 176 | + if ( ! isset($nonemptyComponents[$dqlAlias])) { |
|
| 177 | 177 | $result[] = $this->rsm->isMixed |
| 178 | 178 | ? [$entityKey => null] |
| 179 | 179 | : null; |
@@ -267,13 +267,13 @@ discard block |
||
| 267 | 267 | private function updateResultPointer(array &$coll, $index, $dqlAlias, $oneToOne) |
| 268 | 268 | { |
| 269 | 269 | if ($oneToOne) { |
| 270 | - $this->resultPointers[$dqlAlias] =& $coll; |
|
| 270 | + $this->resultPointers[$dqlAlias] = & $coll; |
|
| 271 | 271 | |
| 272 | 272 | return; |
| 273 | 273 | } |
| 274 | 274 | |
| 275 | 275 | if ($index !== false) { |
| 276 | - $this->resultPointers[$dqlAlias] =& $coll[$index]; |
|
| 276 | + $this->resultPointers[$dqlAlias] = & $coll[$index]; |
|
| 277 | 277 | |
| 278 | 278 | return; |
| 279 | 279 | } |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | } |
| 284 | 284 | |
| 285 | 285 | end($coll); |
| 286 | - $this->resultPointers[$dqlAlias] =& $coll[key($coll)]; |
|
| 286 | + $this->resultPointers[$dqlAlias] = & $coll[key($coll)]; |
|
| 287 | 287 | |
| 288 | 288 | return; |
| 289 | 289 | } |