diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-09-23 15:10:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 15:10:30 +0200 |
commit | 8927510685f59555cf337866370b572934e41408 (patch) | |
tree | a62f3441fce0ff3ea51455dba9a6ca0fc207933d /apps/oauth2 | |
parent | d4839b962bad250ab1aa1c40e16c2408ae53a8b2 (diff) | |
parent | 98efa3bda838065fb9ff5740f2688fe2b526ae2d (diff) | |
download | nextcloud-server-8927510685f59555cf337866370b572934e41408.tar.gz nextcloud-server-8927510685f59555cf337866370b572934e41408.zip |
Merge pull request #48223 from nextcloud/feat/add-rector-config
Add rector config
Diffstat (limited to 'apps/oauth2')
-rw-r--r-- | apps/oauth2/lib/Controller/SettingsController.php | 2 | ||||
-rw-r--r-- | apps/oauth2/tests/Controller/SettingsControllerTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/oauth2/lib/Controller/SettingsController.php b/apps/oauth2/lib/Controller/SettingsController.php index 9cbb9781231..9bd02c8a2cd 100644 --- a/apps/oauth2/lib/Controller/SettingsController.php +++ b/apps/oauth2/lib/Controller/SettingsController.php @@ -69,7 +69,7 @@ class SettingsController extends Controller { public function deleteClient(int $id): JSONResponse { $client = $this->clientMapper->getByUid($id); - $this->userManager->callForSeenUsers(function (IUser $user) use ($client) { + $this->userManager->callForSeenUsers(function (IUser $user) use ($client): void { $this->tokenProvider->invalidateTokensOfUser($user->getUID(), $client->getName()); }); diff --git a/apps/oauth2/tests/Controller/SettingsControllerTest.php b/apps/oauth2/tests/Controller/SettingsControllerTest.php index 0ea23439b89..5b8a57a4062 100644 --- a/apps/oauth2/tests/Controller/SettingsControllerTest.php +++ b/apps/oauth2/tests/Controller/SettingsControllerTest.php @@ -122,7 +122,7 @@ class SettingsControllerTest extends TestCase { $userManager = \OC::$server->getUserManager(); // count other users in the db before adding our own $count = 0; - $function = function (IUser $user) use (&$count) { + $function = function (IUser $user) use (&$count): void { if ($user->getLastLogin() > 0) { $count++; } |