Passed
Push — 6.0 ( d9c211...3555c1 )
by liu
06:19
created
src/think/cache/driver/Memcache.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: liu21st <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\cache\driver;
14 14
 
@@ -64,8 +64,7 @@  discard block
 block discarded – undo
64 64
         foreach ($hosts as $i => $host) {
65 65
             $port = $ports[$i] ?? $ports[0];
66 66
             $this->options['timeout'] > 0 ?
67
-            $this->handler->addServer($host, (int) $port, $this->options['persistent'], 1, (int) $this->options['timeout']) :
68
-            $this->handler->addServer($host, (int) $port, $this->options['persistent'], 1);
67
+            $this->handler->addServer($host, (int) $port, $this->options['persistent'], 1, (int) $this->options['timeout']) : $this->handler->addServer($host, (int) $port, $this->options['persistent'], 1);
69 68
         }
70 69
     }
71 70
 
@@ -177,8 +176,7 @@  discard block
 block discarded – undo
177 176
         $key = $this->getCacheKey($name);
178 177
 
179 178
         return false === $ttl ?
180
-        $this->handler->delete($key) :
181
-        $this->handler->delete($key, $ttl);
179
+        $this->handler->delete($key) : $this->handler->delete($key, $ttl);
182 180
     }
183 181
 
184 182
     /**
Please login to merge, or discard this patch.