@@ -8,7 +8,7 @@ discard block |
||
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 |
||
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]; |
@@ -8,7 +8,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |