Passed
Pull Request — 2.6 (#7471)
by Andreas
10:25
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
         }
431 431
 
432 432
         return $value;
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
      */
467 467
     private function translateNamespaces(Query\ResultSetMapping $rsm)
468 468
     {
469
-        $translate = function ($alias) {
469
+        $translate = function($alias) {
470 470
             return $this->_em->getClassMetadata($alias)->getName();
471 471
         };
472 472
 
@@ -996,7 +996,7 @@  discard block
 block discarded – undo
996 996
             $this->getTimestampKey()
997 997
         );
998 998
 
999
-        $result     = $queryCache->get($queryKey, $rsm, $this->_hints);
999
+        $result = $queryCache->get($queryKey, $rsm, $this->_hints);
1000 1000
 
1001 1001
         if ($result !== null) {
1002 1002
             if ($this->cacheLogger) {
@@ -1132,6 +1132,6 @@  discard block
 block discarded – undo
1132 1132
 
1133 1133
         ksort($hints);
1134 1134
 
1135
-        return sha1($query . '-' . serialize($params) . '-' . serialize($hints));
1135
+        return sha1($query.'-'.serialize($params).'-'.serialize($hints));
1136 1136
     }
1137 1137
 }
Please login to merge, or discard this patch.