Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot authored and liu21st committed Aug 19, 2023
1 parent 5d13905 commit 4f9860f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/model/concern/Conversion.php
Expand Up @@ -264,7 +264,7 @@ public function toArray(): array
$val->hidden($hidden[$key], true);
}
// 关联模型对象
if (array_key_exists($key,$this->with) && (!isset($hidden[$key]) || true !== $hidden[$key])) {
if (array_key_exists($key, $this->with) && (!isset($hidden[$key]) || true !== $hidden[$key])) {
$item[$key] = $val->toArray();
}
} elseif (isset($visible[$key])) {
Expand Down
2 changes: 1 addition & 1 deletion src/model/concern/RelationShip.php
Expand Up @@ -55,7 +55,7 @@ trait RelationShip
* 预载入关联模型
*
* @var array
*/
*/
protected $with = [];

/**
Expand Down

0 comments on commit 4f9860f

Please sign in to comment.