Passed
Push — 5.2 ( 3e2708...a249a7 )
by liu
05:10
created
src/think/model/relation/BelongsTo.php 1 patch
Spacing   +2 added lines, -2 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\model\relation;
14 14
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
         return $this->parent->db()
146 146
             ->alias($model)
147
-            ->whereExists(function ($query) use ($table, $model, $relation, $localKey, $foreignKey) {
147
+            ->whereExists(function($query) use ($table, $model, $relation, $localKey, $foreignKey) {
148 148
                 $query->table([$table => $relation])
149 149
                     ->field($relation . '.' . $localKey)
150 150
                     ->whereExp($model . '.' . $foreignKey, '=' . $relation . '.' . $localKey);
Please login to merge, or discard this patch.
src/think/model/relation/HasOne.php 1 patch
Spacing   +2 added lines, -2 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\model\relation;
14 14
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
         return $this->parent->db()
144 144
             ->alias($model)
145
-            ->whereExists(function ($query) use ($table, $model, $relation, $localKey, $foreignKey) {
145
+            ->whereExists(function($query) use ($table, $model, $relation, $localKey, $foreignKey) {
146 146
                 $query->table([$table => $relation])
147 147
                     ->field($relation . '.' . $foreignKey)
148 148
                     ->whereExp($model . '.' . $localKey, '=' . $relation . '.' . $foreignKey);
Please login to merge, or discard this patch.
src/think/model/relation/HasRelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 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\model\relation;
14 14
 
Please login to merge, or discard this patch.
src/think/model/concern/ModelEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 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\model\concern;
14 14
 
Please login to merge, or discard this patch.
src/think/model/concern/Attribute.php 1 patch
Spacing   +2 added lines, -2 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\model\concern;
14 14
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      */
284 284
     public function getChangedData(): array
285 285
     {
286
-        $data = $this->force ? $this->data : array_udiff_assoc($this->data, $this->origin, function ($a, $b) {
286
+        $data = $this->force ? $this->data : array_udiff_assoc($this->data, $this->origin, function($a, $b) {
287 287
             if ((empty($a) || empty($b)) && $a !== $b) {
288 288
                 return 1;
289 289
             }
Please login to merge, or discard this patch.
src/think/model/concern/RelationShip.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 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\model\concern;
14 14
 
Please login to merge, or discard this patch.
src/think/model/concern/Conversion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 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\model\concern;
14 14
 
Please login to merge, or discard this patch.
src/think/model/concern/SoftDelete.php 1 patch
Spacing   +2 added lines, -2 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\model\concern;
14 14
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             $query->where($data);
156 156
             $data = null;
157 157
         } elseif ($data instanceof \Closure) {
158
-            call_user_func_array($data, [ & $query]);
158
+            call_user_func_array($data, [& $query]);
159 159
             $data = null;
160 160
         } elseif (is_null($data)) {
161 161
             return false;
Please login to merge, or discard this patch.
src/think/model/concern/OptimLock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 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\model\concern;
14 14
 
Please login to merge, or discard this patch.