Passed
Push — 5.2 ( 8b8fc2...cf53d3 )
by liu
03:33
created
src/think/Error.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: 麦当苗儿 <[email protected]> <http://zjzit.cn>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think;
14 14
 
Please login to merge, or discard this patch.
src/think/model/Collection.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: zhangyajun <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think\model;
14 14
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function hidden(array $hidden)
41 41
     {
42
-        $this->each(function (Model $model) use ($hidden) {
42
+        $this->each(function(Model $model) use ($hidden) {
43 43
             $model->hidden($hidden);
44 44
         });
45 45
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function visible(array $visible)
56 56
     {
57
-        $this->each(function (Model $model) use ($visible) {
57
+        $this->each(function(Model $model) use ($visible) {
58 58
             $model->visible($visible);
59 59
         });
60 60
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function append(array $append)
71 71
     {
72
-        $this->each(function (Model $model) use ($append) {
72
+        $this->each(function(Model $model) use ($append) {
73 73
             $model->append($append);
74 74
         });
75 75
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function withAttr($name, $callback = null)
87 87
     {
88
-        $this->each(function (Model $model) use ($name, $callback) {
88
+        $this->each(function(Model $model) use ($name, $callback) {
89 89
             $model->withAttribute($name, $callback);
90 90
         });
91 91
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function bindAttr($relation, $attrs = [])
104 104
     {
105
-        $this->each(function (Model $model) use ($relation, $attrs) {
105
+        $this->each(function(Model $model) use ($relation, $attrs) {
106 106
             $model->bindAttr($relation, $attrs);
107 107
         });
108 108
 
Please login to merge, or discard this patch.
src/think/debug/Html.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 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
 namespace think\debug;
13 13
 
14 14
 use think\Container;
Please login to merge, or discard this patch.
src/think/debug/Console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: yangweijie <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 namespace think\debug;
13 13
 
14 14
 use think\Container;
Please login to merge, or discard this patch.
src/think/cache/driver/Memcache.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@  discard block
 block discarded – undo
56 56
         foreach ($hosts as $i => $host) {
57 57
             $port = $ports[$i] ?? $ports[0];
58 58
             $this->options['timeout'] > 0 ?
59
-            $this->handler->addServer($host, (int) $port, $this->options['persistent'], 1, $this->options['timeout']) :
60
-            $this->handler->addServer($host, (int) $port, $this->options['persistent'], 1);
59
+            $this->handler->addServer($host, (int) $port, $this->options['persistent'], 1, $this->options['timeout']) : $this->handler->addServer($host, (int) $port, $this->options['persistent'], 1);
61 60
         }
62 61
     }
63 62
 
@@ -174,8 +173,7 @@  discard block
 block discarded – undo
174 173
         $key = $this->getCacheKey($name);
175 174
 
176 175
         return false === $ttl ?
177
-        $this->handler->delete($key) :
178
-        $this->handler->delete($key, $ttl);
176
+        $this->handler->delete($key) : $this->handler->delete($key, $ttl);
179 177
     }
180 178
 
181 179
     /**
Please login to merge, or discard this patch.