@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | public function newDefaultAnnotationDriver(array $paths = []) : AnnotationDriver |
| 162 | 162 | { |
| 163 | - AnnotationRegistry::registerFile(__DIR__ . '/Annotation/DoctrineAnnotations.php'); |
|
| 163 | + AnnotationRegistry::registerFile(__DIR__.'/Annotation/DoctrineAnnotations.php'); |
|
| 164 | 164 | |
| 165 | 165 | $reader = new CachedReader(new AnnotationReader(), new ArrayCache()); |
| 166 | 166 | |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | { |
| 235 | 235 | $queryCacheImpl = $this->getQueryCacheImpl(); |
| 236 | 236 | |
| 237 | - if (! $queryCacheImpl) { |
|
| 237 | + if ( ! $queryCacheImpl) { |
|
| 238 | 238 | throw QueryCacheNotConfigured::new(); |
| 239 | 239 | } |
| 240 | 240 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | |
| 245 | 245 | $metadataCacheImpl = $this->getMetadataCacheImpl(); |
| 246 | 246 | |
| 247 | - if (! $metadataCacheImpl) { |
|
| 247 | + if ( ! $metadataCacheImpl) { |
|
| 248 | 248 | throw MetadataCacheNotConfigured::new(); |
| 249 | 249 | } |
| 250 | 250 | |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | { |
| 453 | 453 | $reflectionClass = new \ReflectionClass($repositoryClassName); |
| 454 | 454 | |
| 455 | - if (! $reflectionClass->implementsInterface(ObjectRepository::class)) { |
|
| 455 | + if ( ! $reflectionClass->implementsInterface(ObjectRepository::class)) { |
|
| 456 | 456 | throw InvalidEntityRepository::fromClassName($repositoryClassName); |
| 457 | 457 | } |
| 458 | 458 | |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | public function getParameter($key) |
| 304 | 304 | { |
| 305 | 305 | $filteredParameters = $this->parameters->filter( |
| 306 | - function (Query\Parameter $parameter) use ($key) : bool { |
|
| 306 | + function(Query\Parameter $parameter) use ($key) : bool { |
|
| 307 | 307 | $parameterName = $parameter->getName(); |
| 308 | 308 | |
| 309 | 309 | return $key === $parameterName || (string) $key === (string) $parameterName; |
@@ -719,7 +719,7 @@ discard block |
||
| 719 | 719 | return null; |
| 720 | 720 | } |
| 721 | 721 | |
| 722 | - if (! is_array($result)) { |
|
| 722 | + if ( ! is_array($result)) { |
|
| 723 | 723 | return $result; |
| 724 | 724 | } |
| 725 | 725 | |
@@ -753,7 +753,7 @@ discard block |
||
| 753 | 753 | throw new NoResult(); |
| 754 | 754 | } |
| 755 | 755 | |
| 756 | - if (! is_array($result)) { |
|
| 756 | + if ( ! is_array($result)) { |
|
| 757 | 757 | return $result; |
| 758 | 758 | } |
| 759 | 759 | |
@@ -843,7 +843,7 @@ discard block |
||
| 843 | 843 | $this->setHydrationMode($hydrationMode); |
| 844 | 844 | } |
| 845 | 845 | |
| 846 | - if (! empty($parameters)) { |
|
| 846 | + if ( ! empty($parameters)) { |
|
| 847 | 847 | $this->setParameters($parameters); |
| 848 | 848 | } |
| 849 | 849 | |
@@ -882,11 +882,11 @@ discard block |
||
| 882 | 882 | $this->setHydrationMode($hydrationMode); |
| 883 | 883 | } |
| 884 | 884 | |
| 885 | - if (! empty($parameters)) { |
|
| 885 | + if ( ! empty($parameters)) { |
|
| 886 | 886 | $this->setParameters($parameters); |
| 887 | 887 | } |
| 888 | 888 | |
| 889 | - $setCacheEntry = function () { |
|
| 889 | + $setCacheEntry = function() { |
|
| 890 | 890 | }; |
| 891 | 891 | |
| 892 | 892 | if ($this->hydrationCacheProfile !== null) { |
@@ -900,11 +900,11 @@ discard block |
||
| 900 | 900 | return $result[$realCacheKey]; |
| 901 | 901 | } |
| 902 | 902 | |
| 903 | - if (! $result) { |
|
| 903 | + if ( ! $result) { |
|
| 904 | 904 | $result = []; |
| 905 | 905 | } |
| 906 | 906 | |
| 907 | - $setCacheEntry = function ($data) use ($cache, $result, $cacheKey, $realCacheKey, $queryCacheProfile) { |
|
| 907 | + $setCacheEntry = function($data) use ($cache, $result, $cacheKey, $realCacheKey, $queryCacheProfile) { |
|
| 908 | 908 | $result[$realCacheKey] = $data; |
| 909 | 909 | |
| 910 | 910 | $cache->save($cacheKey, $result, $queryCacheProfile->getLifetime()); |
@@ -1066,7 +1066,7 @@ discard block |
||
| 1066 | 1066 | { |
| 1067 | 1067 | $query = $this->getSQL(); |
| 1068 | 1068 | $hints = $this->getHints(); |
| 1069 | - $params = array_map(function (Parameter $parameter) { |
|
| 1069 | + $params = array_map(function(Parameter $parameter) { |
|
| 1070 | 1070 | $value = $parameter->getValue(); |
| 1071 | 1071 | |
| 1072 | 1072 | // Small optimization |
@@ -1080,6 +1080,6 @@ discard block |
||
| 1080 | 1080 | |
| 1081 | 1081 | ksort($hints); |
| 1082 | 1082 | |
| 1083 | - return sha1($query . '-' . serialize($params) . '-' . serialize($hints)); |
|
| 1083 | + return sha1($query.'-'.serialize($params).'-'.serialize($hints)); |
|
| 1084 | 1084 | } |
| 1085 | 1085 | } |