diff --git a/modules/memcacheMonitor/hooks/hook_configpage.php b/modules/memcacheMonitor/hooks/hook_configpage.php index 4debe964ee90ecd9d41b781763738c0beb1f6240..497c84893aa89a811e2db53f259bad67cb6a226a 100644 --- a/modules/memcacheMonitor/hooks/hook_configpage.php +++ b/modules/memcacheMonitor/hooks/hook_configpage.php @@ -1,10 +1,11 @@ <?php + /** * Hook to add the memcacheMonitor module to the config page. * * @param \SimpleSAML\XHTML\Template &$template The template that we should alter in this hook. + * @return void */ - function memcacheMonitor_hook_configpage(\SimpleSAML\XHTML\Template &$template) { $template->data['links']['memcacheMonitor'] = [ diff --git a/modules/memcacheMonitor/hooks/hook_frontpage.php b/modules/memcacheMonitor/hooks/hook_frontpage.php index d25437327aaad82653f3a517a8ecc9051d22dc38..9a1b4f07b7b4c329c0db156648a6a7d556309bb3 100644 --- a/modules/memcacheMonitor/hooks/hook_frontpage.php +++ b/modules/memcacheMonitor/hooks/hook_frontpage.php @@ -1,10 +1,11 @@ <?php + /** * Hook to add the simple consenet admin module to the frontpage. * * @param array &$links The links on the frontpage, split into sections. + * @return void */ - function memcacheMonitor_hook_frontpage(&$links) { assert(is_array($links)); diff --git a/modules/memcacheMonitor/hooks/hook_sanitycheck.php b/modules/memcacheMonitor/hooks/hook_sanitycheck.php index a7a36c415dbdbbe7d1fec858040d650cdd5db5cd..ce95aada196521d5d94e07a27f155728f65b2202 100644 --- a/modules/memcacheMonitor/hooks/hook_sanitycheck.php +++ b/modules/memcacheMonitor/hooks/hook_sanitycheck.php @@ -6,8 +6,8 @@ * This function verifies that all memcache servers work. * * @param array &$hookinfo hookinfo + * @return void */ - function memcacheMonitor_hook_sanitycheck(&$hookinfo) { assert(is_array($hookinfo)); diff --git a/modules/memcacheMonitor/www/memcachestat.php b/modules/memcacheMonitor/www/memcachestat.php index fde791e558da79aa1ad5c266ed7b73ba1e7c2edc..0e79858b98387203181d0084e6d18ffe70e2a5fa 100644 --- a/modules/memcacheMonitor/www/memcachestat.php +++ b/modules/memcacheMonitor/www/memcachestat.php @@ -1,10 +1,19 @@ <?php +/** + * @param int $input + * @return string + */ function tdate($input) { return date(DATE_RFC822, $input); } + +/** + * @param int $input + * @return string + */ function hours($input) { if ($input < 60) { @@ -19,6 +28,11 @@ function hours($input) return number_format($input / (24 * 60 * 60), 2).' days'; } + +/** + * @param int $input + * @return string + */ function humanreadable($input) { $output = "";