@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | public function getParameter($key) |
324 | 324 | { |
325 | 325 | $filteredParameters = $this->parameters->filter( |
326 | - function (Query\Parameter $parameter) use ($key) : bool { |
|
326 | + function(Query\Parameter $parameter) use ($key) : bool { |
|
327 | 327 | $parameterName = $parameter->getName(); |
328 | 328 | |
329 | 329 | return $key === $parameterName || (string) $key === (string) $parameterName; |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | if ($value === null) { |
427 | 427 | throw ORMInvalidArgumentException::invalidIdentifierBindingEntity(); |
428 | 428 | } |
429 | - } catch (MappingException|ORMMappingException $e) { |
|
429 | + } catch (MappingException | ORMMappingException $e) { |
|
430 | 430 | // Silence any mapping exceptions. These can occur if the object in |
431 | 431 | // question is not a mapped entity, in which case we just don't do |
432 | 432 | // any preparation on the value. |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | */ |
470 | 470 | private function translateNamespaces(Query\ResultSetMapping $rsm) |
471 | 471 | { |
472 | - $translate = function ($alias) { |
|
472 | + $translate = function($alias) { |
|
473 | 473 | return $this->_em->getClassMetadata($alias)->getName(); |
474 | 474 | }; |
475 | 475 | |
@@ -999,7 +999,7 @@ discard block |
||
999 | 999 | $this->getTimestampKey() |
1000 | 1000 | ); |
1001 | 1001 | |
1002 | - $result = $queryCache->get($queryKey, $rsm, $this->_hints); |
|
1002 | + $result = $queryCache->get($queryKey, $rsm, $this->_hints); |
|
1003 | 1003 | |
1004 | 1004 | if ($result !== null) { |
1005 | 1005 | if ($this->cacheLogger) { |
@@ -1135,6 +1135,6 @@ discard block |
||
1135 | 1135 | |
1136 | 1136 | ksort($hints); |
1137 | 1137 | |
1138 | - return sha1($query . '-' . serialize($params) . '-' . serialize($hints)); |
|
1138 | + return sha1($query.'-'.serialize($params).'-'.serialize($hints)); |
|
1139 | 1139 | } |
1140 | 1140 | } |