[everything] bulk set event handler return types to void

This commit is contained in:
Shish
2024-01-15 11:52:35 +00:00
parent 985d34aedd
commit bb9ab613ce
106 changed files with 591 additions and 591 deletions

View File

@ -25,7 +25,7 @@ class ExtManager extends Extension
/** @var ExtManagerTheme */
protected Themelet $theme;
public function onPageRequest(PageRequestEvent $event)
public function onPageRequest(PageRequestEvent $event): void
{
global $page, $user;
if ($event->page_matches("ext_manager")) {
@ -64,7 +64,7 @@ class ExtManager extends Extension
}
}
public function onCliGen(CliGenEvent $event)
public function onCliGen(CliGenEvent $event): void
{
$event->app->register('disable-all-ext')
->setDescription('Disable all extensions')
@ -74,7 +74,7 @@ class ExtManager extends Extension
});
}
public function onPageSubNavBuilding(PageSubNavBuildingEvent $event)
public function onPageSubNavBuilding(PageSubNavBuildingEvent $event): void
{
global $user;
if ($event->parent === "system") {
@ -86,7 +86,7 @@ class ExtManager extends Extension
}
}
public function onUserBlockBuilding(UserBlockBuildingEvent $event)
public function onUserBlockBuilding(UserBlockBuildingEvent $event): void
{
global $user;
if ($user->can(Permissions::MANAGE_EXTENSION_LIST)) {