@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $entity = new GH6443Post(); |
| 27 | 27 | $entity->id = 'Foo'; |
| 28 | 28 | |
| 29 | - $dql = 'SELECT p FROM ' . GH6443Post::class . ' p WHERE p = ?1'; |
|
| 29 | + $dql = 'SELECT p FROM '.GH6443Post::class.' p WHERE p = ?1'; |
|
| 30 | 30 | $query = $this->_em->createQuery($dql); |
| 31 | 31 | |
| 32 | 32 | // we do not know that the internal type is a rot13, so we can not add the type parameter here |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | // Check query cache. |
| 256 | 256 | $queryCache = $this->getQueryCacheDriver(); |
| 257 | - if (! ($this->useQueryCache && $queryCache)) { |
|
| 257 | + if ( ! ($this->useQueryCache && $queryCache)) { |
|
| 258 | 258 | $parser = new Parser($this); |
| 259 | 259 | |
| 260 | 260 | $this->parserResult = $parser->parse(); |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | $rsm = $this->getResultSetMapping(); |
| 393 | 393 | $type = null; |
| 394 | 394 | |
| 395 | - if (! isset($paramMappings[$key])) { |
|
| 395 | + if ( ! isset($paramMappings[$key])) { |
|
| 396 | 396 | throw QueryException::unknownParameter($key); |
| 397 | 397 | } |
| 398 | 398 | |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | |
| 412 | 412 | $value = $this->processParameterValue($value); |
| 413 | 413 | if (null === $type) { |
| 414 | - $type = ($parameter->getValue() === $value) |
|
| 414 | + $type = ($parameter->getValue() === $value) |
|
| 415 | 415 | ? $parameter->getType() |
| 416 | 416 | : ParameterTypeInferer::inferType($value); |
| 417 | 417 | } |
@@ -707,7 +707,7 @@ discard block |
||
| 707 | 707 | public function setLockMode($lockMode) |
| 708 | 708 | { |
| 709 | 709 | if (in_array($lockMode, [LockMode::NONE, LockMode::PESSIMISTIC_READ, LockMode::PESSIMISTIC_WRITE], true)) { |
| 710 | - if (! $this->em->getConnection()->isTransactionActive()) { |
|
| 710 | + if ( ! $this->em->getConnection()->isTransactionActive()) { |
|
| 711 | 711 | throw TransactionRequiredException::transactionRequired(); |
| 712 | 712 | } |
| 713 | 713 | } |
@@ -748,11 +748,11 @@ discard block |
||
| 748 | 748 | ->getName(); |
| 749 | 749 | |
| 750 | 750 | return md5( |
| 751 | - $this->getDQL() . serialize($this->hints) . |
|
| 752 | - '&platform=' . $platform . |
|
| 753 | - ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : '') . |
|
| 754 | - '&firstResult=' . $this->firstResult . '&maxResult=' . $this->maxResults . |
|
| 755 | - '&hydrationMode=' . $this->hydrationMode . '&types=' . serialize($this->parsedTypes) . 'DOCTRINE_QUERY_CACHE_SALT' |
|
| 751 | + $this->getDQL().serialize($this->hints). |
|
| 752 | + '&platform='.$platform. |
|
| 753 | + ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : ''). |
|
| 754 | + '&firstResult='.$this->firstResult.'&maxResult='.$this->maxResults. |
|
| 755 | + '&hydrationMode='.$this->hydrationMode.'&types='.serialize($this->parsedTypes).'DOCTRINE_QUERY_CACHE_SALT' |
|
| 756 | 756 | ); |
| 757 | 757 | } |
| 758 | 758 | |
@@ -761,7 +761,7 @@ discard block |
||
| 761 | 761 | */ |
| 762 | 762 | protected function getHash() |
| 763 | 763 | { |
| 764 | - return sha1(parent::getHash() . '-' . $this->firstResult . '-' . $this->maxResults); |
|
| 764 | + return sha1(parent::getHash().'-'.$this->firstResult.'-'.$this->maxResults); |
|
| 765 | 765 | } |
| 766 | 766 | |
| 767 | 767 | /** |