[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

@ -6,7 +6,7 @@ namespace Shimmie2;
class RSSComments extends Extension
{
public function onPostListBuilding(PostListBuildingEvent $event)
public function onPostListBuilding(PostListBuildingEvent $event): void
{
global $config, $page;
$title = $config->get_string(SetupConfig::TITLE);
@ -15,7 +15,7 @@ class RSSComments extends Extension
"title=\"$title - Comments\" href=\"".make_link("rss/comments")."\" />");
}
public function onPageRequest(PageRequestEvent $event)
public function onPageRequest(PageRequestEvent $event): void
{
global $config, $database, $page;
if ($event->page_matches("rss/comments")) {
@ -75,7 +75,7 @@ EOD;
}
}
public function onPageSubNavBuilding(PageSubNavBuildingEvent $event)
public function onPageSubNavBuilding(PageSubNavBuildingEvent $event): void
{
if ($event->parent == "comment") {
$event->add_nav_link("comment_rss", new Link('rss/comments'), "Feed");