Completed
Pull Request — master (#156)
by
unknown
03:20
created
lib/Doctrine/Common/Cache/PredisCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         }
71 71
 
72 72
         // No lifetime, use MSET
73
-        $response = $this->client->mset(array_map(function ($value) {
73
+        $response = $this->client->mset(array_map(function($value) {
74 74
             return serialize($value);
75 75
         }, $keysAndValues));
76 76
 
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/RedisCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 
96 96
             // Keys have lifetime, use SETEX for each of them
97 97
             foreach ($keysAndValues as $key => $value) {
98
-                if (!$this->redis->setex($key, $lifetime, $value)) {
98
+                if ( ! $this->redis->setex($key, $lifetime, $value)) {
99 99
                     $success = false;
100 100
                 }
101 101
             }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Cache/ChainCacheTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Doctrine\Tests\Common\Cache;
4 4
 
5
-use Doctrine\Common\Cache\ApcCache;
6 5
 use Doctrine\Common\Cache\ArrayCache;
7 6
 use Doctrine\Common\Cache\ChainCache;
8 7
 
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/CacheProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     private function getNamespacedId($id)
184 184
     {
185
-        $namespaceVersion  = $this->getNamespaceVersion();
185
+        $namespaceVersion = $this->getNamespaceVersion();
186 186
 
187 187
         return sprintf('%s[%s][%s]', $this->namespace, $id, $namespaceVersion);
188 188
     }
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
         $success = true;
266 266
 
267 267
         foreach ($keysAndValues as $key => $value) {
268
-            if (!$this->doSave($key, $value, (int) $lifetime)) {
268
+            if ( ! $this->doSave($key, $value, (int) $lifetime)) {
269 269
                 $success = false;
270 270
             }
271 271
         }
Please login to merge, or discard this patch.