@@ -213,8 +213,8 @@ |
||
| 213 | 213 | $this->metadataCache = []; |
| 214 | 214 | |
| 215 | 215 | $this->em |
| 216 | - ->getEventManager() |
|
| 217 | - ->removeEventListener([Events::onClear], $this); |
|
| 216 | + ->getEventManager() |
|
| 217 | + ->removeEventListener([Events::onClear], $this); |
|
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | /** |
@@ -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 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | { |
| 146 | 146 | $row = $this->stmt->fetch(PDO::FETCH_ASSOC); |
| 147 | 147 | |
| 148 | - if (! $row) { |
|
| 148 | + if ( ! $row) { |
|
| 149 | 149 | $this->cleanup(); |
| 150 | 150 | |
| 151 | 151 | return false; |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | : $value; |
| 287 | 287 | |
| 288 | 288 | if ($cacheKeyInfo['isIdentifier'] && $value !== null) { |
| 289 | - $id[$dqlAlias] .= '|' . $value; |
|
| 289 | + $id[$dqlAlias] .= '|'.$value; |
|
| 290 | 290 | $nonemptyComponents[$dqlAlias] = true; |
| 291 | 291 | } |
| 292 | 292 | break; |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | if ( ! isset($cacheKeyInfo['isScalar'])) { |
| 325 | 325 | $dqlAlias = $cacheKeyInfo['dqlAlias']; |
| 326 | 326 | $type = $cacheKeyInfo['type']; |
| 327 | - $fieldName = $dqlAlias . '_' . $fieldName; |
|
| 327 | + $fieldName = $dqlAlias.'_'.$fieldName; |
|
| 328 | 328 | $value = $type |
| 329 | 329 | ? $type->convertToPHPValue($value, $this->platform) |
| 330 | 330 | : $value; |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | $ownerId = $this->uow->getEntityIdentifier($collection->getOwner()); |
| 91 | 91 | $key = new CollectionCacheKey($this->sourceEntity->getRootClassName(), $fieldName, $ownerId); |
| 92 | 92 | |
| 93 | - // Invalidate non initialized collections OR ordered collection |
|
| 93 | + // Invalidate non initialized collections OR ordered collection |
|
| 94 | 94 | if (($isDirty && ! $isInitialized) || |
| 95 | 95 | ($this->association instanceof ToManyAssociationMetadata && $this->association->getOrderBy())) { |
| 96 | 96 | $this->persister->update($collection); |
@@ -1,7 +1,7 @@ |
||
| 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\Persister\Collection; |
| 7 | 7 | |
@@ -25,6 +25,10 @@ |
||
| 25 | 25 | $this->em = $this->getTestEntityManager(); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $dqlToBeTested |
|
| 30 | + * @param string $sqlToBeConfirmed |
|
| 31 | + */ |
|
| 28 | 32 | public function assertSqlGeneration($dqlToBeTested, $sqlToBeConfirmed) |
| 29 | 33 | { |
| 30 | 34 | try { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Query; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Persisters; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional; |
| 6 | 6 | |