Completed
Push — 6.0 ( 2047bd...3299ba )
by liu
04:14
created
src/think/model/concern/Attribute.php 1 patch
Spacing   +5 added lines, -5 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
 
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
             return $this->relation[$name];
283 283
         }
284 284
 
285
-        throw new InvalidArgumentException('property not exists:' . static::class . '->' . $name);
285
+        throw new InvalidArgumentException('property not exists:'.static::class.'->'.$name);
286 286
     }
287 287
 
288 288
     /**
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
      */
293 293
     public function getChangedData(): array
294 294
     {
295
-        $data = $this->force ? $this->data : array_udiff_assoc($this->data, $this->origin, function ($a, $b) {
295
+        $data = $this->force ? $this->data : array_udiff_assoc($this->data, $this->origin, function($a, $b) {
296 296
             if ((empty($a) || empty($b)) && $a !== $b) {
297 297
                 return 1;
298 298
             }
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
             $value = $this->autoWriteTimestamp();
360 360
         } else {
361 361
             // 检测修改器
362
-            $method = 'set' . App::parseName($name, 1) . 'Attr';
362
+            $method = 'set'.App::parseName($name, 1).'Attr';
363 363
 
364 364
             if (method_exists($this, $method)) {
365 365
                 $array = $this->data;
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
     {
483 483
         // 检测属性获取器
484 484
         $fieldName = $this->getRealFieldName($name);
485
-        $method    = 'get' . App::parseName($name, 1) . 'Attr';
485
+        $method    = 'get'.App::parseName($name, 1).'Attr';
486 486
 
487 487
         if (isset($this->withAttr[$fieldName])) {
488 488
             if ($relation) {
Please login to merge, or discard this patch.