Completed
Push — 6.0 ( da97d3...0c7635 )
by liu
08:32 queued 03:31
created
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
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.