@@ -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\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\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\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\ORM\Query; |
6 | 6 |
@@ -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\Query; |
6 | 6 | |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | /** |
10 | 10 | * A query object is in CLEAN state when it has NO unparsed/unprocessed DQL parts. |
11 | 11 | */ |
12 | - const STATE_CLEAN = 1; |
|
12 | + const STATE_CLEAN = 1; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * A query object is in state DIRTY when it has DQL parts that have not yet been |
@@ -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\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\ORM\Query; |
6 | 6 |
@@ -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; |
6 | 6 | |
@@ -633,11 +633,11 @@ discard block |
||
633 | 633 | ->getName(); |
634 | 634 | |
635 | 635 | return md5( |
636 | - $this->getDQL() . serialize($this->hints) . |
|
637 | - '&platform=' . $platform . |
|
638 | - ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : '') . |
|
639 | - '&firstResult=' . $this->firstResult . '&maxResult=' . $this->maxResults . |
|
640 | - '&hydrationMode=' . $this->hydrationMode . '&types=' . serialize($this->parsedTypes) . 'DOCTRINE_QUERY_CACHE_SALT' |
|
636 | + $this->getDQL().serialize($this->hints). |
|
637 | + '&platform='.$platform. |
|
638 | + ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : ''). |
|
639 | + '&firstResult='.$this->firstResult.'&maxResult='.$this->maxResults. |
|
640 | + '&hydrationMode='.$this->hydrationMode.'&types='.serialize($this->parsedTypes).'DOCTRINE_QUERY_CACHE_SALT' |
|
641 | 641 | ); |
642 | 642 | } |
643 | 643 | |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | */ |
647 | 647 | protected function getHash() |
648 | 648 | { |
649 | - return sha1(parent::getHash(). '-'. $this->firstResult . '-' . $this->maxResults); |
|
649 | + return sha1(parent::getHash().'-'.$this->firstResult.'-'.$this->maxResults); |
|
650 | 650 | } |
651 | 651 | |
652 | 652 | /** |