Passed
Pull Request — 2.6 (#7471)
by Luís
08:47
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;
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
             return $value->name;
417 417
         }
418 418
 
419
-        if (! is_object($value)) {
419
+        if ( ! is_object($value)) {
420 420
             return $value;
421 421
         }
422 422
 
@@ -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.