From c14d6dd15c487c83dd977bbc2598346a07183507 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 8 Sep 2014 12:23:27 +1200 Subject: [PATCH] comment fixes, formatting, duplicate array key --- CRM/Contact/Import/Parser/Contact.php | 2 +- CRM/Member/BAO/Membership.php | 2 +- api/v3/Setting.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index 3cc01b3fd1..5c452b00ad 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -1593,7 +1593,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser { * @param $value * @param $valueArray * - * @return ture if value present in array or retun false + * @return bool * * @access public */ diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index 20d8a9206c..3ce24572f0 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -436,7 +436,7 @@ class CRM_Member_BAO_Membership extends CRM_Member_DAO_Membership { * @param int $membershipId membership id * @param int $contactId contact id * - * @param const $action + * @param integer $action * * @return Array array of contact_id of all related contacts. * @static diff --git a/api/v3/Setting.php b/api/v3/Setting.php index c9a2a139ea..8e81b94d61 100644 --- a/api/v3/Setting.php +++ b/api/v3/Setting.php @@ -42,7 +42,7 @@ function civicrm_api3_setting_getfields($params) { 'title' => 'name of setting field', 'api.required' => 1, 'type' => CRM_Utils_Type::T_STRING), - 'group' => array('title' => 'name of setting field', + 'group' => array( 'api.required' => 0, 'title' => 'Setting Group', 'description' => 'Settings Group. This is required if the setting is not stored in config', @@ -241,7 +241,7 @@ function _civicrm_api3_setting_create_spec(&$params) { function civicrm_api3_setting_get($params) { $domains = _civicrm_api3_setting_getDomainArray($params); $result = $result = CRM_Core_BAO_Setting::getItems($params, $domains, CRM_Utils_Array::value('return', $params, array())); - return civicrm_api3_create_success($result,$params,'setting','get'); + return civicrm_api3_create_success($result, $params,'setting','get'); } /** * Metadata for setting create function -- 2.25.1