INFRA-132 - api/v3 - Fix misc oddball syntax
authorTim Otten <totten@civicrm.org>
Fri, 9 Jan 2015 02:31:56 +0000 (18:31 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 9 Jan 2015 03:57:20 +0000 (19:57 -0800)
api/v3/Event.php
api/v3/Generic.php
api/v3/MembershipBlock.php
api/v3/utils.php

index 0c25b1157764f62038ee507eba83938bbf13ae79..92af27f2eaa5d39805e401359823487faebc8ebc 100644 (file)
@@ -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.
index 55cadfad700b116a54089d04c6933cf7a6d4e0e1..22936c54e4913dd2e95d6c6292dff4644eb655bb 100644 (file)
@@ -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'])) {
index f8bdf3db57f01e9ecd1e6a91b4eaa9b2ba9323cf..7ae4337545b321cf0ca3ed27e27a3c507fdf45d5 100644 (file)
@@ -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.
index e44c1c20a7c217666b703e0dbb2aff20e4436f87..811194ddfe10a36eef940f24b128dd830a48812a 100644 (file)
@@ -133,7 +133,6 @@ function civicrm_api3_verify_mandatory($params, $daoName = NULL, $keys = array()
 
 /**
  *
- * @param <type> $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();