From 37fa58b050ec0124dac4b7a295408951f6036524 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 8 Jan 2015 18:31:56 -0800 Subject: [PATCH] INFRA-132 - api/v3 - Fix misc oddball syntax --- api/v3/Event.php | 2 +- api/v3/Generic.php | 2 +- api/v3/MembershipBlock.php | 2 +- api/v3/utils.php | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/api/v3/Event.php b/api/v3/Event.php index 0c25b11577..92af27f2ea 100644 --- a/api/v3/Event.php +++ b/api/v3/Event.php @@ -230,7 +230,7 @@ function _civicrm_api3_event_getisfull(&$event, $event_id) { /** - * @see _civicrm_api3_generic_getlist_params. + * @see _civicrm_api3_generic_getlist_params * * @param $request * Array. diff --git a/api/v3/Generic.php b/api/v3/Generic.php index 55cadfad70..22936c54e4 100644 --- a/api/v3/Generic.php +++ b/api/v3/Generic.php @@ -152,7 +152,7 @@ function civicrm_api3_generic_getfields($apiRequest) { 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'])) { diff --git a/api/v3/MembershipBlock.php b/api/v3/MembershipBlock.php index f8bdf3db57..7ae4337545 100644 --- a/api/v3/MembershipBlock.php +++ b/api/v3/MembershipBlock.php @@ -40,7 +40,7 @@ /** * 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. diff --git a/api/v3/utils.php b/api/v3/utils.php index e44c1c20a7..811194ddfe 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -133,7 +133,6 @@ function civicrm_api3_verify_mandatory($params, $daoName = NULL, $keys = array() /** * - * @param $data * @param array $data * * @throws API_Exception @@ -1831,7 +1830,7 @@ function _civicrm_api3_validate_integer(&$params, &$fieldName, &$fieldInfo, $ent * 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(); -- 2.25.1