@@ -1,12 +1,12 @@ 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 | |
7 | 7 | use Doctrine\Common\Util\ClassUtils; |
8 | 8 | use Doctrine\Common\Collections\Collection; |
9 | -use Doctrine\Common\Collections\ArrayCollection;; |
|
9 | +use Doctrine\Common\Collections\ArrayCollection; ; |
|
10 | 10 | use Doctrine\ORM\Query\Parameter; |
11 | 11 | use Doctrine\ORM\Cache\QueryCacheKey; |
12 | 12 | use Doctrine\DBAL\Cache\QueryCacheProfile; |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | public function getParameter($key) |
306 | 306 | { |
307 | 307 | $filteredParameters = $this->parameters->filter( |
308 | - function ($parameter) use ($key) |
|
308 | + function($parameter) use ($key) |
|
309 | 309 | { |
310 | 310 | // Must not be identical because of string to integer conversion |
311 | 311 | return ($key == $parameter->getName()); |
@@ -354,14 +354,14 @@ discard block |
||
354 | 354 | public function setParameter($key, $value, $type = null) |
355 | 355 | { |
356 | 356 | $filteredParameters = $this->parameters->filter( |
357 | - function ($parameter) use ($key) |
|
357 | + function($parameter) use ($key) |
|
358 | 358 | { |
359 | 359 | // Must not be identical because of string to integer conversion |
360 | 360 | return ($key == $parameter->getName()); |
361 | 361 | } |
362 | 362 | ); |
363 | 363 | |
364 | - if (! $filteredParameters->isEmpty()) { |
|
364 | + if ( ! $filteredParameters->isEmpty()) { |
|
365 | 365 | $parameter = $filteredParameters->first(); |
366 | 366 | $parameter->setValue($value, $type); |
367 | 367 | |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | */ |
451 | 451 | private function translateNamespaces(Query\ResultSetMapping $rsm) |
452 | 452 | { |
453 | - $translate = function ($alias) { |
|
453 | + $translate = function($alias) { |
|
454 | 454 | return $this->em->getClassMetadata($alias)->getClassName(); |
455 | 455 | }; |
456 | 456 | |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | */ |
513 | 513 | public function setResultCacheProfile(QueryCacheProfile $profile = null) |
514 | 514 | { |
515 | - if (! $profile->getResultCacheDriver()) { |
|
515 | + if ( ! $profile->getResultCacheDriver()) { |
|
516 | 516 | $resultCacheDriver = $this->em->getConfiguration()->getResultCacheImpl(); |
517 | 517 | $profile = $profile->setResultCacheDriver($resultCacheDriver); |
518 | 518 | } |
@@ -980,7 +980,7 @@ discard block |
||
980 | 980 | $this->getTimestampKey() |
981 | 981 | ); |
982 | 982 | |
983 | - $result = $queryCache->get($queryKey, $rsm, $this->hints); |
|
983 | + $result = $queryCache->get($queryKey, $rsm, $this->hints); |
|
984 | 984 | |
985 | 985 | if ($result !== null) { |
986 | 986 | if ($this->cacheLogger) { |
@@ -1114,6 +1114,6 @@ discard block |
||
1114 | 1114 | |
1115 | 1115 | ksort($hints); |
1116 | 1116 | |
1117 | - return sha1($query . '-' . serialize($params) . '-' . serialize($hints)); |
|
1117 | + return sha1($query.'-'.serialize($params).'-'.serialize($hints)); |
|
1118 | 1118 | } |
1119 | 1119 | } |