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/updatenotification | |
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/updatenotification')
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/updatenotification/lib/AppInfo/Application.php b/apps/updatenotification/lib/AppInfo/Application.php index 6b6baafae44..bd48a0646cd 100644 --- a/apps/updatenotification/lib/AppInfo/Application.php +++ b/apps/updatenotification/lib/AppInfo/Application.php @@ -50,7 +50,7 @@ class Application extends App implements IBootstrap { IAppManager $appManager, IGroupManager $groupManager, ContainerInterface $container, - LoggerInterface $logger) { + LoggerInterface $logger): void { if ($config->getSystemValue('updatechecker', true) !== true) { // Updater check is disabled return; diff --git a/apps/updatenotification/lib/BackgroundJob/AppUpdatedNotifications.php b/apps/updatenotification/lib/BackgroundJob/AppUpdatedNotifications.php index 2a501b3d66c..049390546ed 100644 --- a/apps/updatenotification/lib/BackgroundJob/AppUpdatedNotifications.php +++ b/apps/updatenotification/lib/BackgroundJob/AppUpdatedNotifications.php @@ -88,7 +88,7 @@ class AppUpdatedNotifications extends QueuedJob { $isDefer = $this->notificationManager->defer(); // Notify all seen users about the app update - $this->userManager->callForSeenUsers(function (IUser $user) use ($guestsEnabled, $appId, $notification) { + $this->userManager->callForSeenUsers(function (IUser $user) use ($guestsEnabled, $appId, $notification): void { if (!$guestsEnabled && ($user->getBackendClassName() === '\OCA\Guests\UserBackend')) { return; } diff --git a/apps/updatenotification/tests/BackgroundJob/UpdateAvailableNotificationsTest.php b/apps/updatenotification/tests/BackgroundJob/UpdateAvailableNotificationsTest.php index 61bacf9e0ac..a30a5116dcf 100644 --- a/apps/updatenotification/tests/BackgroundJob/UpdateAvailableNotificationsTest.php +++ b/apps/updatenotification/tests/BackgroundJob/UpdateAvailableNotificationsTest.php @@ -254,7 +254,7 @@ class UpdateAvailableNotificationsTest extends TestCase { $i = 0; $job->expects($this->exactly(\count($notifications))) ->method('createNotifications') - ->willReturnCallback(function () use ($notifications, &$i) { + ->willReturnCallback(function () use ($notifications, &$i): void { $this->assertEquals($notifications[$i], func_get_args()); $i++; }); |