From 7f4159ac258c501f9666efc465a78cb2aec9d177 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Mon, 21 Sep 2020 21:21:30 +0200 Subject: Code cleanup - Remove unused variables - Remove unused utility functions - Asserting presence and typehinting global variables - Remove unused variables - Add missing global - Add parameter type constraint - Fix some references to nonexisting variables --- ratatoeskr/sys/plugin_api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ratatoeskr/sys/plugin_api.php') diff --git a/ratatoeskr/sys/plugin_api.php b/ratatoeskr/sys/plugin_api.php index 65b43e2..18e129b 100644 --- a/ratatoeskr/sys/plugin_api.php +++ b/ratatoeskr/sys/plugin_api.php @@ -35,7 +35,7 @@ $url_handlers = []; /* master URL handler */ * $name - The name of the new URL * $callback - The Function to be called (see ). */ -function register_url_handler($name, $callback) +function register_url_handler($name, callable $callback) { global $url_handlers; $url_handlers[$name] = $callback; -- cgit v1.2.3-70-g09d2