@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | public function getParameter($key) |
| 301 | 301 | { |
| 302 | 302 | $filteredParameters = $this->parameters->filter( |
| 303 | - function (Query\Parameter $parameter) use ($key) : bool { |
|
| 303 | + function(Query\Parameter $parameter) use ($key) : bool { |
|
| 304 | 304 | $parameterName = $parameter->getName(); |
| 305 | 305 | |
| 306 | 306 | return $key === $parameterName || (string) $key === (string) $parameterName; |
@@ -716,7 +716,7 @@ discard block |
||
| 716 | 716 | return null; |
| 717 | 717 | } |
| 718 | 718 | |
| 719 | - if (! is_array($result)) { |
|
| 719 | + if ( ! is_array($result)) { |
|
| 720 | 720 | return $result; |
| 721 | 721 | } |
| 722 | 722 | |
@@ -750,7 +750,7 @@ discard block |
||
| 750 | 750 | throw new NoResultException(); |
| 751 | 751 | } |
| 752 | 752 | |
| 753 | - if (! is_array($result)) { |
|
| 753 | + if ( ! is_array($result)) { |
|
| 754 | 754 | return $result; |
| 755 | 755 | } |
| 756 | 756 | |
@@ -840,7 +840,7 @@ discard block |
||
| 840 | 840 | $this->setHydrationMode($hydrationMode); |
| 841 | 841 | } |
| 842 | 842 | |
| 843 | - if (! empty($parameters)) { |
|
| 843 | + if ( ! empty($parameters)) { |
|
| 844 | 844 | $this->setParameters($parameters); |
| 845 | 845 | } |
| 846 | 846 | |
@@ -879,11 +879,11 @@ discard block |
||
| 879 | 879 | $this->setHydrationMode($hydrationMode); |
| 880 | 880 | } |
| 881 | 881 | |
| 882 | - if (! empty($parameters)) { |
|
| 882 | + if ( ! empty($parameters)) { |
|
| 883 | 883 | $this->setParameters($parameters); |
| 884 | 884 | } |
| 885 | 885 | |
| 886 | - $setCacheEntry = function () { |
|
| 886 | + $setCacheEntry = function() { |
|
| 887 | 887 | }; |
| 888 | 888 | |
| 889 | 889 | if ($this->hydrationCacheProfile !== null) { |
@@ -897,11 +897,11 @@ discard block |
||
| 897 | 897 | return $result[$realCacheKey]; |
| 898 | 898 | } |
| 899 | 899 | |
| 900 | - if (! $result) { |
|
| 900 | + if ( ! $result) { |
|
| 901 | 901 | $result = []; |
| 902 | 902 | } |
| 903 | 903 | |
| 904 | - $setCacheEntry = function ($data) use ($cache, $result, $cacheKey, $realCacheKey, $queryCacheProfile) { |
|
| 904 | + $setCacheEntry = function($data) use ($cache, $result, $cacheKey, $realCacheKey, $queryCacheProfile) { |
|
| 905 | 905 | $result[$realCacheKey] = $data; |
| 906 | 906 | |
| 907 | 907 | $cache->save($cacheKey, $result, $queryCacheProfile->getLifetime()); |
@@ -1063,7 +1063,7 @@ discard block |
||
| 1063 | 1063 | { |
| 1064 | 1064 | $query = $this->getSQL(); |
| 1065 | 1065 | $hints = $this->getHints(); |
| 1066 | - $params = array_map(function (Parameter $parameter) { |
|
| 1066 | + $params = array_map(function(Parameter $parameter) { |
|
| 1067 | 1067 | $value = $parameter->getValue(); |
| 1068 | 1068 | |
| 1069 | 1069 | // Small optimization |
@@ -1077,6 +1077,6 @@ discard block |
||
| 1077 | 1077 | |
| 1078 | 1078 | ksort($hints); |
| 1079 | 1079 | |
| 1080 | - return sha1($query . '-' . serialize($params) . '-' . serialize($hints)); |
|
| 1080 | + return sha1($query.'-'.serialize($params).'-'.serialize($hints)); |
|
| 1081 | 1081 | } |
| 1082 | 1082 | } |