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 Oct 31, 2023
1 parent f273d67 commit a640b12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Access/UserPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class UserPolicy extends AbstractPolicy
private $key = 'fof.ban-ips.banIP';

/**
* @param User $actor
* @param User $actor
* @param ?User $user
*
* @return bool|null
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/api/CreateBannedIPControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ public function test_user_with_permission_can_ban_ip_not_already_banned_without_
$response = $this->send(
$this->request('POST', '/api/fof/ban-ips', [
'authenticatedAs' => $userId,
'json' => [
'json' => [
'data' => [
'attributes' => [
'address' => $this->getIPv4NotBanned()[0],
'reason' => 'Testing',
]
]
'reason' => 'Testing',
],
],
],
])
);
Expand Down

0 comments on commit a640b12

Please sign in to comment.