diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-23 14:57:00 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-25 16:15:49 +0200 |
commit | 5cfdf9b9eefe458cf3ef663eb20da796ec13325e (patch) | |
tree | 7b1ff1dcd6daaba145608fb83b91933c316c4eda /core/ajax | |
parent | e5731b3c30f5490f40328809582a738c68ed8686 (diff) | |
download | nextcloud-server-5cfdf9b9eefe458cf3ef663eb20da796ec13325e.tar.gz nextcloud-server-5cfdf9b9eefe458cf3ef663eb20da796ec13325e.zip |
Add void return types to callables
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/update.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 105cedd05f2..acd8c3b22c0 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -121,9 +121,12 @@ if (\OCP\Util::needUpgrade()) { /** @var IEventDispatcher $dispatcher */ $dispatcher = \OC::$server->get(IEventDispatcher::class); - $dispatcher->addListener(MigratorExecuteSqlEvent::class, function (MigratorExecuteSqlEvent $event) use ($eventSource, $l) { - $eventSource->send('success', $l->t('[%d / %d]: %s', [$event->getCurrentStep(), $event->getMaxStep(), $event->getSql()])); - }); + $dispatcher->addListener( + MigratorExecuteSqlEvent::class, + function (MigratorExecuteSqlEvent $event) use ($eventSource, $l): void { + $eventSource->send('success', $l->t('[%d / %d]: %s', [$event->getCurrentStep(), $event->getMaxStep(), $event->getSql()])); + } + ); $feedBack = new FeedBackHandler($eventSource, $l); $dispatcher->addListener(RepairStartEvent::class, [$feedBack, 'handleRepairFeedback']); $dispatcher->addListener(RepairAdvanceEvent::class, [$feedBack, 'handleRepairFeedback']); |