Completed
Pull Request — master (#6001)
by Luís
08:54
created
lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
             ? $this->persister->expandCriteriaParameters($criteria)
297 297
             : $this->persister->expandParameters($criteria);
298 298
 
299
-        return sha1($query . serialize($params) . serialize($orderBy) . $limit . $offset);
299
+        return sha1($query.serialize($params).serialize($orderBy).$limit.$offset);
300 300
     }
301 301
 
302 302
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/AbstractQuery.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
     public function getParameter($key)
325 325
     {
326 326
         $filteredParameters = $this->parameters->filter(
327
-            function ($parameter) use ($key)
327
+            function($parameter) use ($key)
328 328
             {
329 329
                 // Must not be identical because of string to integer conversion
330 330
                 return ($key == $parameter->getName());
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
     public function setParameter($key, $value, $type = null)
374 374
     {
375 375
         $filteredParameters = $this->parameters->filter(
376
-            function ($parameter) use ($key)
376
+            function($parameter) use ($key)
377 377
             {
378 378
                 // Must not be identical because of string to integer conversion
379 379
                 return ($key == $parameter->getName());
@@ -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
 
@@ -1000,7 +1000,7 @@  discard block
 block discarded – undo
1000 1000
             $this->getTimestampKey()
1001 1001
         );
1002 1002
 
1003
-        $result     = $queryCache->get($queryKey, $rsm, $this->_hints);
1003
+        $result = $queryCache->get($queryKey, $rsm, $this->_hints);
1004 1004
 
1005 1005
         if ($result !== null) {
1006 1006
             if ($this->cacheLogger) {
@@ -1136,6 +1136,6 @@  discard block
 block discarded – undo
1136 1136
 
1137 1137
         ksort($hints);
1138 1138
 
1139
-        return sha1($query . '-' . serialize($params) . '-' . serialize($hints));
1139
+        return sha1($query.'-'.serialize($params).'-'.serialize($hints));
1140 1140
     }
1141 1141
 }
Please login to merge, or discard this patch.