Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau authored and StyleCIBot committed Dec 4, 2024
1 parent 3e332d4 commit 5539e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
->add(RegisterMiddleware::class),

(new Extend\Model(User::class))
->relationship('fofTermsPolicies', fn(AbstractModel $user): BelongsToMany =>
$user
->relationship('fofTermsPolicies', fn (AbstractModel $user): BelongsToMany => $user
->belongsToMany(Policy::class, 'fof_terms_policy_user')
->withPivot(['accepted_at', 'is_accepted'])),

Expand Down
1 change: 1 addition & 0 deletions src/Repositories/PolicyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function state(User $user)
if (!$this->rememberState) {
/**
* @var Collection<Policy> $userPolicies
*
* @phpstan-ignore-next-line
*/
$userPolicies = $user->fofTermsPolicies->keyBy('id');
Expand Down

0 comments on commit 5539e46

Please sign in to comment.