comment fix
authorEileen McNaughton <eileen@fuzion.co.nz>
Sun, 1 Feb 2015 21:52:40 +0000 (10:52 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sun, 1 Feb 2015 21:52:40 +0000 (10:52 +1300)
CRM/Core/Smarty/plugins/function.crmSetting.php
CRM/Core/Smarty/plugins/function.crmSigner.php
CRM/Core/Smarty/plugins/function.crmVersion.php

index 4cc6dd45a63aa92002a71601659e4186f689222d..9585e2a078d59d96ab1e9e9d3e30ddfd4d9bff41 100644 (file)
@@ -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'])) {
index 87591beecef79dc5b5858802cfac931def321fc9..f4e7471399bae0b47472559cdd811abf7dde8664 100644 (file)
@@ -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'];
index ba2f169950352efabcc809f798359fb0b50baacb..608d5c162eb921088a3b39a7c92d114a9a374a90 100644 (file)
  *
  * {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();