@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | public function getParameter($key) |
| 303 | 303 | { |
| 304 | 304 | $filteredParameters = $this->parameters->filter( |
| 305 | - static function (Query\Parameter $parameter) use ($key) : bool { |
|
| 305 | + static function(Query\Parameter $parameter) use ($key) : bool { |
|
| 306 | 306 | $parameterName = $parameter->getName(); |
| 307 | 307 | |
| 308 | 308 | return $key === $parameterName || (string) $key === (string) $parameterName; |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | return $value; |
| 396 | 396 | } |
| 397 | 397 | |
| 398 | - if (! is_object($value)) { |
|
| 398 | + if ( ! is_object($value)) { |
|
| 399 | 399 | return $value; |
| 400 | 400 | } |
| 401 | 401 | |
@@ -726,7 +726,7 @@ discard block |
||
| 726 | 726 | return null; |
| 727 | 727 | } |
| 728 | 728 | |
| 729 | - if (! is_array($result)) { |
|
| 729 | + if ( ! is_array($result)) { |
|
| 730 | 730 | return $result; |
| 731 | 731 | } |
| 732 | 732 | |
@@ -760,7 +760,7 @@ discard block |
||
| 760 | 760 | throw new NoResultException(); |
| 761 | 761 | } |
| 762 | 762 | |
| 763 | - if (! is_array($result)) { |
|
| 763 | + if ( ! is_array($result)) { |
|
| 764 | 764 | return $result; |
| 765 | 765 | } |
| 766 | 766 | |
@@ -850,7 +850,7 @@ discard block |
||
| 850 | 850 | $this->setHydrationMode($hydrationMode); |
| 851 | 851 | } |
| 852 | 852 | |
| 853 | - if (! empty($parameters)) { |
|
| 853 | + if ( ! empty($parameters)) { |
|
| 854 | 854 | $this->setParameters($parameters); |
| 855 | 855 | } |
| 856 | 856 | |
@@ -873,7 +873,7 @@ discard block |
||
| 873 | 873 | $this->setHydrationMode($hydrationMode); |
| 874 | 874 | } |
| 875 | 875 | |
| 876 | - if (! empty($parameters)) { |
|
| 876 | + if ( ! empty($parameters)) { |
|
| 877 | 877 | $this->setParameters($parameters); |
| 878 | 878 | } |
| 879 | 879 | |
@@ -912,11 +912,11 @@ discard block |
||
| 912 | 912 | $this->setHydrationMode($hydrationMode); |
| 913 | 913 | } |
| 914 | 914 | |
| 915 | - if (! empty($parameters)) { |
|
| 915 | + if ( ! empty($parameters)) { |
|
| 916 | 916 | $this->setParameters($parameters); |
| 917 | 917 | } |
| 918 | 918 | |
| 919 | - $setCacheEntry = static function () { |
|
| 919 | + $setCacheEntry = static function() { |
|
| 920 | 920 | }; |
| 921 | 921 | |
| 922 | 922 | if ($this->hydrationCacheProfile !== null) { |
@@ -930,11 +930,11 @@ discard block |
||
| 930 | 930 | return $result[$realCacheKey]; |
| 931 | 931 | } |
| 932 | 932 | |
| 933 | - if (! $result) { |
|
| 933 | + if ( ! $result) { |
|
| 934 | 934 | $result = []; |
| 935 | 935 | } |
| 936 | 936 | |
| 937 | - $setCacheEntry = static function ($data) use ($cache, $result, $cacheKey, $realCacheKey, $queryCacheProfile) { |
|
| 937 | + $setCacheEntry = static function($data) use ($cache, $result, $cacheKey, $realCacheKey, $queryCacheProfile) { |
|
| 938 | 938 | $result[$realCacheKey] = $data; |
| 939 | 939 | |
| 940 | 940 | $cache->save($cacheKey, $result, $queryCacheProfile->getLifetime()); |
@@ -1096,7 +1096,7 @@ discard block |
||
| 1096 | 1096 | { |
| 1097 | 1097 | $query = $this->getSQL(); |
| 1098 | 1098 | $hints = $this->getHints(); |
| 1099 | - $params = array_map(function (Parameter $parameter) { |
|
| 1099 | + $params = array_map(function(Parameter $parameter) { |
|
| 1100 | 1100 | $value = $parameter->getValue(); |
| 1101 | 1101 | |
| 1102 | 1102 | // Small optimization |
@@ -1110,6 +1110,6 @@ discard block |
||
| 1110 | 1110 | |
| 1111 | 1111 | ksort($hints); |
| 1112 | 1112 | |
| 1113 | - return sha1($query . '-' . serialize($params) . '-' . serialize($hints)); |
|
| 1113 | + return sha1($query.'-'.serialize($params).'-'.serialize($hints)); |
|
| 1114 | 1114 | } |
| 1115 | 1115 | } |