Passed
Pull Request — master (#233)
by Luís
04:03
created
lib/Doctrine/Common/Cache/SQLite3Cache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $item = $this->findById($id);
90 90
 
91
-        if (!$item) {
91
+        if ( ! $item) {
92 92
             return false;
93 93
         }
94 94
 
@@ -163,11 +163,11 @@  discard block
 block discarded – undo
163 163
      *
164 164
      * @return array|null
165 165
      */
166
-    private function findById($id, bool $includeData = true) : ?array
166
+    private function findById($id, bool $includeData = true) : ? array
167 167
     {
168 168
         list($idField) = $fields = $this->getFields();
169 169
 
170
-        if (!$includeData) {
170
+        if ( ! $includeData) {
171 171
             $key = array_search(static::DATA_FIELD, $fields);
172 172
             unset($fields[$key]);
173 173
         }
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/CacheProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     private function getNamespacedId(string $id) : string
193 193
     {
194
-        $namespaceVersion  = $this->getNamespaceVersion();
194
+        $namespaceVersion = $this->getNamespaceVersion();
195 195
 
196 196
         return sprintf('%s[%s][%s]', $this->namespace, $id, $namespaceVersion);
197 197
     }
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         $success = true;
275 275
 
276 276
         foreach ($keysAndValues as $key => $value) {
277
-            if (!$this->doSave($key, $value, $lifetime)) {
277
+            if ( ! $this->doSave($key, $value, $lifetime)) {
278 278
                 $success = false;
279 279
             }
280 280
         }
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         $success = true;
307 307
 
308 308
         foreach ($keys as $key) {
309
-            if (! $this->doDelete($key)) {
309
+            if ( ! $this->doDelete($key)) {
310 310
                 $success = false;
311 311
             }
312 312
         }
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/ExtMongoDBCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             $this->collection->updateOne(
121 121
                 ['_id' => $id],
122 122
                 ['$set' => [
123
-                    MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new UTCDateTime((time() + $lifeTime) * 1000): null),
123
+                    MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new UTCDateTime((time() + $lifeTime) * 1000) : null),
124 124
                     MongoDBCache::DATA_FIELD => new Binary(serialize($data), Binary::TYPE_GENERIC),
125 125
                 ]],
126 126
                 ['upsert' => true]
Please login to merge, or discard this patch.