Passed
Pull Request — 5.1 (#2134)
by
unknown
07:00
created
library/think/Model.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
         // 设置当前模型 确保查询返回模型对象
330 330
         $query = Db::connect($this->connection, false, $this->query);
331 331
         $query->model($this)
332
-            ->name($this->name . $this->suffix)
332
+            ->name($this->name.$this->suffix)
333 333
             ->json($this->json, $this->jsonAssoc)
334 334
             ->setJsonFieldType($this->jsonType);
335 335
 
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 
340 340
         // 设置当前数据表和模型名
341 341
         if (!empty($this->table)) {
342
-            $query->table($this->table . $this->suffix);
342
+            $query->table($this->table.$this->suffix);
343 343
         }
344 344
 
345 345
         if (!empty($this->pk)) {
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
 
383 383
         // 全局作用域
384 384
         if (true === $useBaseQuery && method_exists($this, 'base')) {
385
-            call_user_func_array([$this, 'base'], [ & $query]);
385
+            call_user_func_array([$this, 'base'], [& $query]);
386 386
         }
387 387
 
388 388
         $globalScope = is_array($useBaseQuery) && $useBaseQuery ? $useBaseQuery : $this->globalScope;
Please login to merge, or discard this patch.