@@ -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 | |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | { |
148 | 148 | $row = $this->stmt->fetch(PDO::FETCH_ASSOC); |
149 | 149 | |
150 | - if (! $row) { |
|
150 | + if ( ! $row) { |
|
151 | 151 | $this->cleanup(); |
152 | 152 | |
153 | 153 | return false; |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | |
279 | 279 | // If there are field name collisions in the child class, then we need |
280 | 280 | // to only hydrate if we are looking at the correct discriminator value |
281 | - if( |
|
281 | + if ( |
|
282 | 282 | isset($cacheKeyInfo['discriminatorColumn'], $data[$cacheKeyInfo['discriminatorColumn']]) && |
283 | 283 | // Note: loose comparison required. See https://github.com/doctrine/doctrine2/pull/6304#issuecomment-323294442 |
284 | 284 | $data[$cacheKeyInfo['discriminatorColumn']] != $cacheKeyInfo['discriminatorValue'] |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | : $value; |
299 | 299 | |
300 | 300 | if ($cacheKeyInfo['isIdentifier'] && $value !== null) { |
301 | - $id[$dqlAlias] .= '|' . $value; |
|
301 | + $id[$dqlAlias] .= '|'.$value; |
|
302 | 302 | $nonemptyComponents[$dqlAlias] = true; |
303 | 303 | } |
304 | 304 | break; |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | if ( ! isset($cacheKeyInfo['isScalar'])) { |
337 | 337 | $dqlAlias = $cacheKeyInfo['dqlAlias']; |
338 | 338 | $type = $cacheKeyInfo['type']; |
339 | - $fieldName = $dqlAlias . '_' . $fieldName; |
|
339 | + $fieldName = $dqlAlias.'_'.$fieldName; |
|
340 | 340 | $value = $type |
341 | 341 | ? $type->convertToPHPValue($value, $this->platform) |
342 | 342 | : $value; |