Merge pull request #3543 from eileenmcnaughton/CRM-14850
[civicrm-core.git] / CRM / Utils / Token.php
index 14de24649621f3a3ad8eb41b694c2cb93b3b97a3..bd5b16598a9155d17b8a8467afd5ef595b7ab7bc 100644 (file)
@@ -802,7 +802,16 @@ class CRM_Utils_Token {
     }
     return $tokenHtml;
   }
-  public static function getHookTokenReplacement(
+
+  /**
+   * @param $token
+   * @param $contact
+   * @param $category
+   * @param bool $html
+   * @param bool $escapeSmarty
+   *
+   * @return mixed|string
+   */public static function getHookTokenReplacement(
     $token,
     &$contact,
     $category,
@@ -1358,6 +1367,11 @@ class CRM_Utils_Token {
     }
   }
 
+  /**
+   * @param $tokens
+   *
+   * @return array
+   */
   static function flattenTokens(&$tokens) {
     $flattenTokens = array();