From 06bff0b9b84d47c43f9bc8aff06a29d85ebb7ed0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 14 Nov 2023 14:47:55 +0100 Subject: Add function param/return types, fix a lot more phpstorm complaints --- modules-available/eventlog/pages/log.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules-available/eventlog/pages') diff --git a/modules-available/eventlog/pages/log.inc.php b/modules-available/eventlog/pages/log.inc.php index bfb16d11..66826b08 100644 --- a/modules-available/eventlog/pages/log.inc.php +++ b/modules-available/eventlog/pages/log.inc.php @@ -26,7 +26,7 @@ class SubPage )); } - private static function typeToIcon($type) + private static function typeToIcon(string $type): string { switch ($type) { case 'info': @@ -40,7 +40,7 @@ class SubPage } } - private static function typeToColor($type) + private static function typeToColor(string $type): string { switch ($type) { case 'warning': -- cgit v1.2.3-55-g7522