Commit 389bcebf authored by yashodha's avatar yashodha

clean up for batch-20

parent 5cca31a2
......@@ -94,7 +94,6 @@ class CRM_Activity_Form_Task_FileOnCase extends CRM_Activity_Form_Task {
*
* @return void
*/
public function postProcess() {
$formparams = $this->exportValues();
$caseId = $formparams['unclosed_case_id'];
......@@ -131,7 +130,7 @@ class CRM_Activity_Form_Task_FileOnCase extends CRM_Activity_Form_Task {
else {
CRM_Core_Session::setStatus(ts('Not permitted to file activity %1 %2.', array(
1 => empty($defaults['subject']) ? '' : $defaults['subject'],
2 => $defaults['activity_date_time']
2 => $defaults['activity_date_time'],
)),
ts("Error"), "error");
}
......
......@@ -76,7 +76,7 @@ class CRM_Activity_Form_Task_PickProfile extends CRM_Activity_Form_Task {
if (count($this->_activityHolderIds) > $this->_maxActivities) {
CRM_Core_Session::setStatus(ts("The maximum number of Activities you can select for Batch Update is %1. You have selected %2. Please select fewer Activities from your search results and try again.", array(
1 => $this->_maxActivities,
2 => count($this->_activityHolderIds)
2 => count($this->_activityHolderIds),
)), ts('Maximum Exceeded'), 'error');
$validate = TRUE;
}
......@@ -129,7 +129,7 @@ class CRM_Activity_Form_Task_PickProfile extends CRM_Activity_Form_Task {
$ufGroupElement = $this->add('select', 'uf_group_id', ts('Select Profile'),
array(
'' => ts('- select profile -')
'' => ts('- select profile -'),
) + $profiles, TRUE
);
$this->addDefaultButtons(ts('Continue'));
......
......@@ -156,7 +156,7 @@ class CRM_Admin_Form_MailSettings extends CRM_Admin_Form {
foreach ($fields as $f) {
if (in_array($f, array(
'is_default',
'is_ssl'
'is_ssl',
))) {
$params[$f] = CRM_Utils_Array::value($f, $formValues, FALSE);
}
......
......@@ -120,7 +120,7 @@ class CRM_Admin_Form_Setting_Smtp extends CRM_Admin_Form_Setting {
$from = '"' . $domainEmailName . '" <' . $domainEmailAddress . '>';
$testMailStatusMsg = ts('Sending test email. FROM: %1 TO: %2.<br />', array(
1 => $domainEmailAddress,
2 => $toEmail
2 => $toEmail,
));
$params = array();
......
......@@ -83,7 +83,7 @@ class CRM_Admin_Page_JobLog extends CRM_Core_Page_Basic {
'url' => CRM_Utils_System::url('civicrm/admin',
'reset=1'
),
)
),
);
CRM_Utils_System::appendBreadCrumb($breadCrumb);
return parent::run();
......@@ -104,8 +104,7 @@ class CRM_Admin_Page_JobLog extends CRM_Core_Page_Basic {
$jobName = NULL;
if ($jid) {
$jobName =
CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Job', $jid);
$jobName = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Job', $jid);
}
$this->assign('jobName', $jobName);
......
......@@ -125,7 +125,7 @@ class CRM_Admin_Page_Options extends CRM_Core_Page_Basic {
'url' => CRM_Utils_System::url('civicrm/admin/access',
'reset=1'
),
)
),
);
CRM_Utils_System::appendBreadCrumb($breadCrumb);
}
......@@ -210,7 +210,7 @@ class CRM_Admin_Page_Options extends CRM_Core_Page_Basic {
'url' => 'civicrm/contact/search/custom',
'qs' => 'reset=1&csid=%%value%%',
'title' => ts('Run %1', array(1 => self::$_gName)),
)
),
);
self::$_links = $runLink + self::$_links;
}
......
......@@ -80,7 +80,7 @@ class CRM_Admin_Page_ParticipantStatusType extends CRM_Core_Page_Basic {
public function browse() {
$statusTypes = array();
$dao = new CRM_Event_DAO_ParticipantStatusType;
$dao = new CRM_Event_DAO_ParticipantStatusType();
$dao->orderBy('weight');
$dao->find();
......@@ -92,7 +92,7 @@ class CRM_Admin_Page_ParticipantStatusType extends CRM_Core_Page_Basic {
'Awaiting approval',
'Pending from waitlist',
'Pending from approval',
'Rejected'
'Rejected',
);
while ($dao->fetch()) {
......
......@@ -106,7 +106,7 @@ class CRM_Admin_Page_PaymentProcessor extends CRM_Core_Page_Basic {
//CRM-15546
$paymentProcessorTypes = CRM_Core_PseudoConstant::get('CRM_Financial_DAO_PaymentProcessor', 'payment_processor_type_id', array(
'labelColumn' => 'name',
'flip' => 1
'flip' => 1,
));
$this->assign('defaultPaymentProcessorType', $paymentProcessorTypes['PayPal']);
$breadCrumb = array(
......@@ -115,7 +115,7 @@ class CRM_Admin_Page_PaymentProcessor extends CRM_Core_Page_Basic {
'url' => CRM_Utils_System::url('civicrm/admin',
'reset=1'
),
)
),
);
CRM_Utils_System::appendBreadCrumb($breadCrumb);
return parent::run();
......
......@@ -48,7 +48,7 @@ class CRM_Campaign_BAO_Campaign extends CRM_Campaign_DAO_Campaign {
*/
public static function create(&$params) {
if (empty($params)) {
return;
return NULL;
}
if (!(CRM_Utils_Array::value('id', $params))) {
......
......@@ -177,7 +177,7 @@ SELECT petition.id as id,
*/
public function createSignature(&$params) {
if (empty($params)) {
return;
return NULL;
}
if (!isset($params['sid'])) {
......@@ -637,7 +637,6 @@ AND tag_id = ( SELECT id FROM civicrm_tag WHERE name = %2 )";
)
) . "@$emailDomain";
$confirmUrl = CRM_Utils_System::url('civicrm/petition/confirm',
"reset=1&cid={$se->contact_id}&sid={$se->id}&h={$se->hash}&a={$params['activityId']}&pid={$params['sid']}",
TRUE
......
......@@ -122,8 +122,6 @@ class CRM_Campaign_Form_Petition extends CRM_Core_Form {
* Set default values for the form. Note that in edit/view mode
* the default values are retrieved from the database
*
* @param null
*
* @return array
* array of default values
*/
......@@ -199,7 +197,7 @@ class CRM_Campaign_Form_Petition extends CRM_Core_Form {
// custom group id
$this->add('select', 'contact_profile_id', ts('Contact Profile'),
array(
'' => ts('- select -')
'' => ts('- select -'),
) + $customContactProfiles, TRUE
);
......
......@@ -50,7 +50,7 @@ class CRM_Campaign_Form_Search_Survey extends CRM_Core_Form {
*
* @return void
*/
function preProcess() {
public function preProcess() {
$this->_search = CRM_Utils_Array::value('search', $_GET);
$this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE, FALSE);
$this->_searchTab = CRM_Utils_Request::retrieve('type', 'String', $this, FALSE, 'survey');
......@@ -86,7 +86,7 @@ class CRM_Campaign_Form_Search_Survey extends CRM_Core_Form {
$surveyTypes = CRM_Campaign_BAO_Survey::getSurveyActivityType();
$this->add('select', 'activity_type_id',
ts('Activity Type'), array(
'' => ts('- select -')
'' => ts('- select -'),
) + $surveyTypes
);
$this->set('surveyTypes', $surveyTypes);
......
......@@ -475,7 +475,7 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page {
->addSetting(array(
'tabSettings' => array(
'active' => strtolower(CRM_Utils_Array::value('subPage', $_GET, 'campaign')),
)
),
));
}
......
......@@ -103,7 +103,7 @@ class CRM_Campaign_Page_Petition_Confirm extends CRM_Core_Page {
* @param int $activity_id
* @param int $petition_id
*
* @return boolean
* @return bool
* True on success
*/
public static function confirm($contact_id, $subscribe_id, $hash, $activity_id, $petition_id) {
......
......@@ -56,7 +56,6 @@ class CRM_Contact_Form_Edit_CommunicationPreferences {
// since the pcm - preferred comminication method is logically
// grouped hence we'll use groups of HTML_QuickForm
// checkboxes for DO NOT phone, email, mail
// we take labels from SelectValues
$privacy = $commPreff = $commPreference = array();
......@@ -118,7 +117,7 @@ class CRM_Contact_Form_Edit_CommunicationPreferences {
if (!empty($greetingTokens)) {
$form->addElement('select', $fields['field'], $fields['label'],
array(
'' => ts('- select -')
'' => ts('- select -'),
) + $greetingTokens
);
//custom addressee
......@@ -187,8 +186,7 @@ class CRM_Contact_Form_Edit_CommunicationPreferences {
if ($form->_action & CRM_Core_Action::ADD) {
foreach (CRM_Contact_BAO_Contact::$_greetingTypes as $greeting) {
if (empty($defaults[$greeting . '_id'])) {
if ($defaultGreetingTypeId =
CRM_Contact_BAO_Contact_Utils::defaultGreeting($form->_contactType, $greeting)
if ($defaultGreetingTypeId = CRM_Contact_BAO_Contact_Utils::defaultGreeting($form->_contactType, $greeting)
) {
$defaults[$greeting . '_id'] = $defaultGreetingTypeId;
}
......
......@@ -131,7 +131,7 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form {
$this->prev = $this->next = NULL;
foreach (array(
'prev',
'next'
'next',
) as $position) {
if (!empty($pos[$position])) {
if ($pos[$position]['id1'] && $pos[$position]['id2']) {
......@@ -282,7 +282,7 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form {
$buttons[] = array(
'type' => 'done',
'name' => ts('Merge and View Result'),
'icon' => 'circle-check'
'icon' => 'circle-check',
);
}
......
......@@ -86,7 +86,7 @@ class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search {
'entity' => 'group_contact',
'label' => ts('in'),
'context' => 'search',
'placeholder' => ts('- any group -')
'placeholder' => ts('- any group -'),
));
}
......@@ -97,7 +97,7 @@ class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search {
'entity' => 'entity_tag',
'label' => ts('with'),
'context' => 'search',
'placeholder' => ts('- any tag -')
'placeholder' => ts('- any tag -'),
));
}
}
......@@ -243,7 +243,7 @@ class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search {
$this->_formValues['tag'][$tag] = 1;
}
return;
return NULL;
}
/**
......
......@@ -72,7 +72,7 @@ class CRM_Contact_Form_Search_Custom_Basic extends CRM_Contact_Form_Search_Custo
'city',
'state_province',
'postal_code',
'country'
'country',
)) && empty($addressOptions[$field])
) {
unset($this->_columns[$name]);
......@@ -112,7 +112,7 @@ class CRM_Contact_Form_Search_Custom_Basic extends CRM_Contact_Form_Search_Custo
$this->_formValues['tag'][$tag] = 1;
}
return;
return NULL;
}
/**
......@@ -155,7 +155,7 @@ class CRM_Contact_Form_Search_Custom_Basic extends CRM_Contact_Form_Search_Custo
*
* @return CRM_Contact_DAO_Contact
*/
function all(
public function all(
$offset = 0,
$rowCount = 0,
$sort = NULL,
......
......@@ -96,7 +96,7 @@ class CRM_Contact_Form_Search_Custom_EventAggregate extends CRM_Contact_Form_Sea
'end_date',
'show_payees',
'event_type_id',
'event_id'
'event_id',
));
}
......@@ -110,7 +110,7 @@ class CRM_Contact_Form_Search_Custom_EventAggregate extends CRM_Contact_Form_Sea
/**
* Construct the search query
*/
function all(
public function all(
$offset = 0, $rowcount = 0, $sort = NULL,
$includeContactIDs = FALSE, $justIDs = FALSE
) {
......
......@@ -131,7 +131,7 @@ class CRM_Contact_Form_Search_Custom_RandomSegment extends CRM_Contact_Form_Sear
*
* @return string
*/
function all(
public function all(
$offset = 0, $rowcount = 0, $sort = NULL,
$includeContactIDs = FALSE, $justIDs = FALSE
) {
......@@ -376,6 +376,6 @@ class CRM_Contact_Form_Search_Custom_RandomSegment extends CRM_Contact_Form_Sear
// the temporary tables are dropped automatically
// so we don't do it here
// but let mysql clean up
return;
return NULL;
}
}
......@@ -480,7 +480,7 @@ class CRM_Contact_Form_Task_EmailCommon {
$count_success = count($form->_toContactDetails);
CRM_Core_Session::setStatus(ts('One message was sent successfully.', array(
'plural' => '%count messages were sent successfully.',
'count' => $count_success
'count' => $count_success,
)), ts('Message Sent', array('plural' => 'Messages Sent', 'count' => $count_success)), 'success');
}
......@@ -501,7 +501,7 @@ class CRM_Contact_Form_Task_EmailCommon {
$status = '(' . ts('because no email address on file or communication preferences specify DO NOT EMAIL or Contact is deceased or Primary email address is On Hold') . ')<ul><li>' . implode('</li><li>', $not_sent) . '</li></ul>';
CRM_Core_Session::setStatus($status, ts('One Message Not Sent', array(
'count' => count($emailsNotSent),
'plural' => '%count Messages Not Sent'
'plural' => '%count Messages Not Sent',
)), 'info');
}
......
......@@ -113,7 +113,7 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio
$params = array(
1 => array($contact_id, 'Integer'),
2 => array($isTest, 'Integer')
2 => array($isTest, 'Integer'),
);
$cs = CRM_Core_DAO::executeQuery($query, $params);
......@@ -237,8 +237,8 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio
*
* @param int $contact_id
* Contact id.
* @param int $isTest
* @param string $filter
* @param int $isTest
* Additional filter criteria, later used in where clause.
*
* @return array
......
......@@ -840,6 +840,9 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
if (!empty($dupeParams['onbehalf'])) {
unset($dupeParams['onbehalf']);
}
if (!empty($dupeParams['honor'])) {
unset($dupeParams['honor']);
}
$dedupeParams = CRM_Dedupe_Finder::formatParams($dupeParams, 'Individual');
$dedupeParams['check_permission'] = FALSE;
......
......@@ -156,7 +156,7 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont
'pcp_display_in_roll',
'pcp_is_anonymous',
'pcp_roll_nickname',
'pcp_personal_note'
'pcp_personal_note',
) as $val) {
if (!empty($this->_params[$val])) {
$this->assign($val, $this->_params[$val]);
......@@ -242,7 +242,7 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont
elseif (in_array($name, array(
'addressee',
'email_greeting',
'postal_greeting'
'postal_greeting',
)) && !empty($contact[$name . '_custom'])
) {
$defaults[$name . '_custom'] = $contact[$name . '_custom'];
......
......@@ -738,7 +738,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
'last_name',
'suffix_id',
'organization_name',
'household_name'
'household_name',
);
if ($profileContactType == 'honor' && in_array($field['name'], $honoreeNamefields)) {
unset($fields[$field['name']]);
......@@ -887,7 +887,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
* When we get the control back from payment gate way
* lets delete the recurring and related contribution.
*
**/
*/
public function cancelRecurring() {
$isCancel = CRM_Utils_Request::retrieve('cancel', 'Boolean', CRM_Core_DAO::$_nullObject);
if ($isCancel) {
......
......@@ -59,7 +59,7 @@ class CRM_Contribute_Form_ContributionPage_Custom extends CRM_Contribute_Form_Co
$entities[] = array(
'entity_name' => 'contribution_1',
'entity_type' => 'ContributionModel',
'entity_sub_type' => '*'
'entity_sub_type' => '*',
);
// If applicable, register 'membership_1'
......@@ -69,7 +69,7 @@ class CRM_Contribute_Form_ContributionPage_Custom extends CRM_Contribute_Form_Co
$entities[] = array(
'entity_name' => 'membership_1',
'entity_type' => 'MembershipModel',
'entity_sub_type' => '*'
'entity_sub_type' => '*',
);
$allowCoreTypes[] = 'Membership';
$allowSubTypes['MembershipType'] = explode(',', $member['membership_types']);
......
......@@ -54,7 +54,7 @@ class CRM_Contribute_Form_ContributionPage_TabHeader {
->addSetting(array(
'tabSettings' => array(
'active' => self::getCurrentTab($tabs),
)
),
));
return $tabs;
}
......@@ -171,8 +171,7 @@ class CRM_Contribute_Form_ContributionPage_TabHeader {
$tabs[$key]['qfKey'] = NULL;
}
$tabs[$key]['link'] =
CRM_Utils_System::url(
$tabs[$key]['link'] = CRM_Utils_System::url(
"civicrm/admin/contribute/{$key}",
"{$reset}action=update&id={$contribPageId}{$tabs[$key]['qfKey']}"
);
......
......@@ -53,7 +53,7 @@ class CRM_Contribute_Form_Task_Delete extends CRM_Contribute_Form_Task {
*
* @return void
*/
function preProcess() {
public function preProcess() {
//check for delete
if (!CRM_Core_Permission::checkActionPermission('CiviContribute', CRM_Core_Action::DELETE)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
......@@ -86,7 +86,7 @@ class CRM_Contribute_Form_Task_Delete extends CRM_Contribute_Form_Task {
}
$status = ts('Deleted Contribution(s): %1 (Total Selected: %2) ', array(
1 => $deletedContributions,
2 => count($this->_contributionIds)
2 => count($this->_contributionIds),
));
CRM_Core_Session::setStatus($status, '', 'info');
}
......
......@@ -53,7 +53,7 @@ class CRM_Contribute_Form_Task_PDF extends CRM_Contribute_Form_Task {
*
* @return void
*/
function preProcess() {
public function preProcess() {
$id = CRM_Utils_Request::retrieve('id', 'Positive',
$this, FALSE
);
......@@ -94,7 +94,7 @@ AND {$this->_componentClause}";
array(
'url' => $url,
'title' => ts('Search Results'),
)
),
);
CRM_Utils_System::appendBreadCrumb($breadCrumb);
......
......@@ -73,7 +73,7 @@ class CRM_Contribute_Form_Task_PickProfile extends CRM_Contribute_Form_Task {
if (count($this->_contributionIds) > $this->_maxContributions) {
CRM_Core_Session::setStatus(ts("The maximum number of contributions you can select for Batch Update is %1. You have selected %2. Please select fewer contributions from your search results and try again.", array(
1 => $this->_maxContributions,
2 => count($this->_contributionIds)
2 => count($this->_contributionIds),
)), ts('Batch Update Error'), 'error');
$validate = TRUE;
}
......@@ -102,7 +102,7 @@ class CRM_Contribute_Form_Task_PickProfile extends CRM_Contribute_Form_Task {
$ufGroupElement = $this->add('select', 'uf_group_id', ts('Select Profile'),
array(
'' => ts('- select profile -')
'' => ts('- select profile -'),
) + $profiles, TRUE
);
$this->addDefaultButtons(ts('Continue'));
......
......@@ -430,11 +430,13 @@ class CRM_Contribute_Form_UpdateBilling extends CRM_Core_Form {
$session->setStatus($status, $msgTitle, $msgType);
}
elseif (!$userID) {
if ($status)
if ($status) {
CRM_Utils_System::setUFMessage($status);
}
$result = (int) ($updateSubscription && isset($ctype));
if (isset($tplParams))
if (isset($tplParams)) {
$session->set('resultParams', $tplParams);
}
return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/contribute/subscriptionstatus',
"reset=1&task=billing&result={$result}"));
}
......
......@@ -79,7 +79,7 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField {
foreach (array(
'contribution_id',
'invoice_id',
'trxn_id'
'trxn_id',
) as $key) {
$this->_mapperFields[$key] .= ' (match to contribution record)';
$highlightedFields[] = $key;
......@@ -92,7 +92,7 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField {
'email',
'first_name',
'last_name',
'external_identifier'
'external_identifier',
);
foreach ($highlightedFieldsArray as $name) {
$highlightedFields[] = $name;
......
......@@ -224,10 +224,10 @@ class CRM_Core_CommunityMessages {
* @return bool
*/
public function validateDocument($document) {
if (!isset($document['ttl']) || !is_integer($document['ttl'])) {
if (!isset($document['ttl']) || !is_int($document['ttl'])) {
return FALSE;
}
if (!isset($document['retry']) || !is_integer($document['retry'])) {
if (!isset($document['retry']) || !is_int($document['retry'])) {
return FALSE;
}
if (!isset($document['messages']) || !is_array($document['messages'])) {
......
......@@ -229,7 +229,7 @@ abstract class CRM_Core_Component_Info {
* Provides information whether given component is currently
* marked as enabled in configuration.
*
* @return boolean
* @return bool
* true if component is enabled, false if not
*/
public function isEnabled() {
......@@ -322,7 +322,7 @@ abstract class CRM_Core_Component_Info {
/**
* Provides information whether given component uses system wide search.
*
* @return boolean
* @return bool
* true if component needs search integration
*/
public function usesSearch() {
......
......@@ -45,7 +45,7 @@ class CRM_Core_ManagedEntities {
CRM_Core_Transaction::addCallback(
CRM_Core_Transaction::PHASE_POST_COMMIT,
function () {
CRM_Core_ManagedEntities::singleton(TRUE)->reconcile();
CRM_Core_ManagedEntities::singleton(TRUE)->reconcile();
},
array(),
'ManagedEntities::reconcile'
......
......@@ -57,7 +57,7 @@ function smarty_function_isValueChange($params, &$smarty) {
if (empty($params['key'])) {
$smarty->trigger_error("Missing required parameter, 'key', in isValueChange plugin.");
return;
return NULL;
}
$is_changed = FALSE;
......@@ -85,5 +85,5 @@ function smarty_function_isValueChange($params, &$smarty) {
$smarty->assign($params['assign'], $is_changed);
}
return;
return NULL;
}
......@@ -49,8 +49,8 @@
* @return string
* the formatted string
*
* For alternate decimal point and thousands separator, delimit values with single quotes in the template.
* EXAMPLE: {$number|crmNumberFormat:2:',':' '} for French notation - 1234.56 becomes 1 234,56
* For alternate decimal point and thousands separator, delimit values with single quotes in the template.
* EXAMPLE: {$number|crmNumberFormat:2:',':' '} for French notation - 1234.56 becomes 1 234,56
*/
function smarty_modifier_crmNumberFormat($number, $decimals = NULL, $dec_point = NULL, $thousands_sep = NULL) {
if (is_numeric($number)) {
......
......@@ -111,7 +111,7 @@ class CRM_Core_StateMachine {
/**
* Setter for name
*
* @param string
* @param string $name
*
* @return void
*/
......@@ -394,7 +394,7 @@ class CRM_Core_StateMachine {
* beginning from the final state, but retain the same session
* values
*
* @return boolean
* @return bool
*/
public function shouldReset() {
return TRUE;
......
......@@ -112,7 +112,7 @@ class CRM_Custom_Form_ChangeFieldType extends CRM_Core_Form {
'dst_html_type',
ts('New HTML Type'),
array(
'' => ts('- select -')
'' => ts('- select -'),
) + $this->_htmlTypeTransitions,
TRUE
);
......@@ -168,7 +168,7 @@ class CRM_Custom_Form_ChangeFieldType extends CRM_Core_Form {
if ($dstHtmlType == 'Text' && in_array($srcHtmlType, array(
'Select',
'Radio',
'Autocomplete-Select'
'Autocomplete-Select',
))
) {
$customField->option_group_id = "NULL";
......
......@@ -74,7 +74,7 @@ abstract class CRM_Custom_Import_Parser extends CRM_Contact_Import_Parser {
* @return mixed
* @throws Exception
*/
function run(
public function run(
$fileName,
$separator = ',',
&$mapper,
......@@ -291,7 +291,7 @@ abstract class CRM_Custom_Import_Parser extends CRM_Contact_Import_Parser {
* Given a list of the importable field keys that the user has selected
* set the active fields array to this list
*
* @param array mapped array of values
* @param array $fieldKeys mapped array of values
*
* @return void
*/
......
......@@ -53,7 +53,6 @@ class CRM_Custom_Page_Group extends CRM_Core_Page {
/**
* Get the action links for this page.
*
* @param null
*
* @return array
* array of action links that we need to display for the browse screen
......@@ -108,8 +107,6 @@ class CRM_Custom_Page_Group extends CRM_Core_Page {
* type of action and executes that action.
* Finally it calls the parent's run method.
*
* @param null
*
* @return void
*/
public function run() {
......
......@@ -188,7 +188,7 @@ class CRM_Dedupe_BAO_Rule extends CRM_Dedupe_DAO_Rule {
/**
* find fields related to a rule group.
*
* @param array contains the rule group property to identify rule group