Passed
Push — 5.1 ( 5c2a7a...5082c7 )
by liu
10:57
created
library/think/model/relation/OneToOne.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
         $query->via($joinAlias);
84 84
 
85 85
         if ($this instanceof BelongsTo) {
86
-            $joinOn = $name . '.' . $this->foreignKey . '=' . $joinAlias . '.' . $this->localKey;
86
+            $joinOn = $name.'.'.$this->foreignKey.'='.$joinAlias.'.'.$this->localKey;
87 87
         } else {
88
-            $joinOn = $name . '.' . $this->localKey . '=' . $joinAlias . '.' . $this->foreignKey;
88
+            $joinOn = $name.'.'.$this->localKey.'='.$joinAlias.'.'.$this->foreignKey;
89 89
         }
90 90
 
91 91
         if ($closure instanceof Closure) {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         }
101 101
 
102 102
         $query->join([$joinTable => $joinAlias], $joinOn, $joinType)
103
-            ->field($field, false, $joinTable, $joinAlias, $relation . '__');
103
+            ->field($field, false, $joinTable, $joinAlias, $relation.'__');
104 104
     }
105 105
 
106 106
     /**
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
         foreach ($this->bindAttr as $key => $attr) {
293 293
             $key = is_numeric($key) ? $attr : $key;
294 294
             if (isset($result->$key)) {
295
-                throw new Exception('bind attr has exists:' . $key);
295
+                throw new Exception('bind attr has exists:'.$key);
296 296
             } else {
297 297
                 $result->setAttr($key, $model ? $model->$attr : null);
298 298
             }
Please login to merge, or discard this patch.