Completed
Pull Request — master (#184)
by Marco
03:55
created
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.
lib/Doctrine/Common/Cache/CacheProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function saveMultiple(array $keysAndValues, $lifetime = 0)
114 114
     {
115
-        if (! is_numeric($lifetime)) {
115
+        if ( ! is_numeric($lifetime)) {
116 116
             throw LifeTimeException::fromNonIntegerLifetime($lifetime);
117 117
         }
118 118
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function save($id, $data, $lifeTime = 0)
145 145
     {
146
-        if (! is_numeric($lifeTime)) {
146
+        if ( ! is_numeric($lifeTime)) {
147 147
             throw LifeTimeException::fromNonIntegerLifetime($lifeTime);
148 148
         }
149 149
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      */
205 205
     private function getNamespacedId($id)
206 206
     {
207
-        $namespaceVersion  = $this->getNamespaceVersion();
207
+        $namespaceVersion = $this->getNamespaceVersion();
208 208
 
209 209
         return sprintf('%s[%s][%s]', $this->namespace, $id, $namespaceVersion);
210 210
     }
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
         $success = true;
288 288
 
289 289
         foreach ($keysAndValues as $key => $value) {
290
-            if (!$this->doSave($key, $value, $lifetime)) {
290
+            if ( ! $this->doSave($key, $value, $lifetime)) {
291 291
                 $success = false;
292 292
             }
293 293
         }
Please login to merge, or discard this patch.