Completed
Push — master ( 2cb775...11c7b1 )
by Georges
45s queued 43s
created
lib/Phpfastcache/Drivers/Mongodb/Driver.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                                 ->getTimestamp()) * 1000) : new UTCDateTime(\time() * 1000)),
125 125
                     ];
126 126
                 }
127
-                $result = (array)$this->getCollection()->updateOne(
127
+                $result = (array) $this->getCollection()->updateOne(
128 128
                     ['_id' => $item->getEncodedKey()],
129 129
                     [
130 130
                         '$set' => $set,
@@ -234,9 +234,9 @@  discard block
 block discarded – undo
234 234
         $username = $this->getConfig()->getUsername();
235 235
         $password = $this->getConfig()->getPassword();
236 236
 
237
-        if( \count($servers) > 0 ){
238
-            $host = \array_reduce($servers, static function($carry, $data){
239
-                $carry .= ($carry === '' ? '' : ',').$data['host'].':'.$data['port'];
237
+        if (\count($servers) > 0) {
238
+            $host = \array_reduce($servers, static function($carry, $data) {
239
+                $carry .= ($carry === '' ? '' : ',') . $data['host'] . ':' . $data['port'];
240 240
                 return $carry;
241 241
             }, '');
242 242
             $port = false;
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
             $host,
251 251
             $port !== 27017 && $port !== false ? ":{$port}" : '',
252 252
             $databaseName ? "/{$databaseName}" : '',
253
-            \count($options) > 0 ? '?'.\http_build_query($options) : '',
253
+            \count($options) > 0 ? '?' . \http_build_query($options) : '',
254 254
         ]);
255 255
     }
256 256
 
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             'verbose' => true,
286 286
         ]))->toArray()[0];
287 287
 
288
-        $array_filter_recursive = function ($array, callable $callback = null) use (&$array_filter_recursive) {
288
+        $array_filter_recursive = function($array, callable $callback = null) use (&$array_filter_recursive) {
289 289
             $array = $callback($array);
290 290
 
291 291
             if (\is_object($array) || \is_array($array)) {
@@ -297,12 +297,12 @@  discard block
 block discarded – undo
297 297
             return $array;
298 298
         };
299 299
 
300
-        $callback = function ($item) {
300
+        $callback = function($item) {
301 301
             /**
302 302
              * Remove unserializable properties
303 303
              */
304 304
             if ($item instanceof \MongoDB\BSON\UTCDateTime) {
305
-                return (string)$item;
305
+                return (string) $item;
306 306
             }
307 307
             return $item;
308 308
         };
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Predis/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
      */
242 242
     public function setScheme(string $scheme): Config
243 243
     {
244
-        if(!\in_array($scheme, ['unix', 'tls'], true)){
244
+        if (!\in_array($scheme, ['unix', 'tls'], true)) {
245 245
             throw new PhpfastcacheInvalidConfigurationException('Invalid scheme: ' . $scheme);
246 246
         }
247 247
         $this->scheme = $scheme;
Please login to merge, or discard this patch.