From: Eileen McNaughton Date: Sun, 1 Feb 2015 21:52:40 +0000 (+1300) Subject: comment fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cc44b0e982918e6731a592eb095f3ef1e6069ea2;p=civicrm-core.git comment fix --- 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();