/**
- * @see _civicrm_api3_generic_getlist_params.
+ * @see _civicrm_api3_generic_getlist_params
*
* @param $request
* Array.
function civicrm_api3_generic_getcount($apiRequest) {
$apiRequest['params']['options']['is_count'] = TRUE;
$result = civicrm_api($apiRequest['entity'], 'get', $apiRequest['params']);
- if (is_numeric (CRM_Utils_Array::value('values', $result))) {
+ if (is_numeric(CRM_Utils_Array::value('values', $result))) {
return (int) $result['values'];
}
if (!isset($result['count'])) {
/**
* API to Create or update a Membership Type
*
- * @param array$params
+ * @param array $params
* An associative array of name/value property values of civicrm_membership_block.
*
* @return array $result newly created or updated membership type property values.
/**
*
- * @param <type> $data
* @param array $data
*
* @throws API_Exception
* E.g. "user_contact_id" or "@user:username".
* @return int|NULL|'unknown-user'
*/
-function _civicrm_api3_resolve_contactID($contactIdExpr) {
+function _civicrm_api3_resolve_contactID($contactIdExpr) {
//if value = 'user_contact_id' replace value with logged in user id
if ($contactIdExpr == "user_contact_id") {
return CRM_Core_Session::getLoggedInContactID();