Passed
Pull Request — 2.6 (#7471)
by Andreas
10:06
created
lib/Doctrine/ORM/AbstractQuery.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.