diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-09-21 21:21:30 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-09-21 21:30:57 +0200 |
commit | 7f4159ac258c501f9666efc465a78cb2aec9d177 (patch) | |
tree | 298b4943fb5cd7ecf5f6959bf1b6f47fbc6e557a /ratatoeskr/sys/plugin_api.php | |
parent | 9834bfc4dc7f0bbf4020cebb43b03069592bc687 (diff) | |
download | ratatoeskr-cms-7f4159ac258c501f9666efc465a78cb2aec9d177.tar.gz ratatoeskr-cms-7f4159ac258c501f9666efc465a78cb2aec9d177.tar.bz2 ratatoeskr-cms-7f4159ac258c501f9666efc465a78cb2aec9d177.zip |
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
Diffstat (limited to 'ratatoeskr/sys/plugin_api.php')
-rw-r--r-- | ratatoeskr/sys/plugin_api.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 <url_process>). */ -function register_url_handler($name, $callback) +function register_url_handler($name, callable $callback) { global $url_handlers; $url_handlers[$name] = $callback; |