From cc44b0e982918e6731a592eb095f3ef1e6069ea2 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 2 Feb 2015 10:52:40 +1300 Subject: [PATCH] comment fix --- CRM/Core/Smarty/plugins/function.crmSetting.php | 4 ++-- CRM/Core/Smarty/plugins/function.crmSigner.php | 1 + CRM/Core/Smarty/plugins/function.crmVersion.php | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Smarty/plugins/function.crmSetting.php b/CRM/Core/Smarty/plugins/function.crmSetting.php index 4cc6dd45a6..9585e2a078 100644 --- a/CRM/Core/Smarty/plugins/function.crmSetting.php +++ b/CRM/Core/Smarty/plugins/function.crmSetting.php @@ -39,7 +39,7 @@ * @param $params * @param $smarty * - * @return int|string|void + * @return int|string|null */ function smarty_function_crmSetting($params, &$smarty) { @@ -53,7 +53,7 @@ function smarty_function_crmSetting($params, &$smarty) { unset($errorScope); if ($result === FALSE) { $smarty->trigger_error("Unknown error"); - return; + return NULL; } if (empty($params['var'])) { diff --git a/CRM/Core/Smarty/plugins/function.crmSigner.php b/CRM/Core/Smarty/plugins/function.crmSigner.php index 87591beece..f4e7471399 100644 --- a/CRM/Core/Smarty/plugins/function.crmSigner.php +++ b/CRM/Core/Smarty/plugins/function.crmSigner.php @@ -46,6 +46,7 @@ * - var: string, a smarty variable to generate * - ts: int, the current time (if omitted, autogenerated) * - any other vars are put into the signature (sorted) + * @param $smarty */ function smarty_function_crmSigner($params, &$smarty) { $var = $params['var']; diff --git a/CRM/Core/Smarty/plugins/function.crmVersion.php b/CRM/Core/Smarty/plugins/function.crmVersion.php index ba2f169950..608d5c162e 100644 --- a/CRM/Core/Smarty/plugins/function.crmVersion.php +++ b/CRM/Core/Smarty/plugins/function.crmVersion.php @@ -41,6 +41,11 @@ * * {crmVersion redact=auto assign=ver}The version is {$ver}. * @endcode + * + * @param $params + * @param $smarty + * + * @return string */ function smarty_function_crmVersion($params, &$smarty) { $version = CRM_Utils_System::version(); -- 2.25.1