Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Aug 19, 2023
1 parent 5d13905 commit c30a382
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ trait RelationShip
* 预载入关联模型
*
* @var array
*/
*/
protected $with = [];

/**
Expand Down

0 comments on commit c30a382

Please sign in to comment.