Completed
Push — 6.0 ( a4fe5c...a4fe5c )
by liu
04:03
created
src/think/Cache.php 1 patch
Spacing   +2 added lines, -2 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;
14 14
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         }
79 79
 
80 80
         if (!isset($this->config['stores'][$name])) {
81
-            throw new InvalidArgumentException('Undefined cache config:' . $name);
81
+            throw new InvalidArgumentException('Undefined cache config:'.$name);
82 82
         }
83 83
 
84 84
         $options = $this->config['stores'][$name];
Please login to merge, or discard this patch.
src/think/Db.php 1 patch
Spacing   +4 added lines, -4 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;
14 14
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         }
101 101
 
102 102
         if (!isset($this->config['connections'][$name])) {
103
-            throw new InvalidArgumentException('Undefined db config:' . $name);
103
+            throw new InvalidArgumentException('Undefined db config:'.$name);
104 104
         }
105 105
 
106 106
         $config = $this->config['connections'][$name];
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     public function event(string $event, callable $callback): void
211 211
     {
212 212
         if ($this->event) {
213
-            $this->event->listen('db.' . $event, $callback);
213
+            $this->event->listen('db.'.$event, $callback);
214 214
         }
215 215
     }
216 216
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     public function trigger(string $event, $params = null, bool $once = false)
226 226
     {
227 227
         if ($this->event) {
228
-            return $this->event->trigger('db.' . $event, $params, $once);
228
+            return $this->event->trigger('db.'.$event, $params, $once);
229 229
         }
230 230
     }
231 231
 
Please login to merge, or discard this patch.