@@ -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 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | public function getConfig(string $name = '', $default = null) |
68 | 68 | { |
69 | 69 | if ('' !== $name) { |
70 | - return $this->config->get('database.' . $name, $default); |
|
70 | + return $this->config->get('database.'.$name, $default); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | return $this->config->get('database'); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | public function event(string $event, callable $callback): void |
93 | 93 | { |
94 | 94 | if ($this->event) { |
95 | - $this->event->listen('db.' . $event, $callback); |
|
95 | + $this->event->listen('db.'.$event, $callback); |
|
96 | 96 | } |
97 | 97 | } |
98 | 98 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | public function trigger(string $event, $params = null, bool $once = false) |
108 | 108 | { |
109 | 109 | if ($this->event) { |
110 | - return $this->event->trigger('db.' . $event, $params, $once); |
|
110 | + return $this->event->trigger('db.'.$event, $params, $once); |
|
111 | 111 | } |
112 | 112 | } |
113 | 113 | } |