From e8829f778dd680c8e9da60aea58157bb9a2ca3f7 Mon Sep 17 00:00:00 2001 From: Eileen Date: Thu, 2 Jan 2014 16:52:20 +1300 Subject: [PATCH] Remove tabs & trailing white spaces introduced in 5bd361934f5dd97d2e3ef40d15f0946541e546cb --- api/v3/ActionSchedule.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/api/v3/ActionSchedule.php b/api/v3/ActionSchedule.php index d910f68ae4..46b7cef59d 100644 --- a/api/v3/ActionSchedule.php +++ b/api/v3/ActionSchedule.php @@ -39,7 +39,7 @@ /** * Get CiviCRM Action Schedule details * {@getfields action_schedule_create} - * + * */ function civicrm_api3_action_schedule_get($params) { $bao = new CRM_Core_BAO_ActionSchedule(); @@ -56,7 +56,7 @@ function civicrm_api3_action_schedule_get($params) { * @param array $params * * @return array - * + * * {@getfields action_schedule_create} */ function civicrm_api3_action_schedule_create($params) { @@ -69,23 +69,23 @@ function civicrm_api3_action_schedule_create($params) { ) ); } - + $ids = array(); if (isset($params['id']) && !CRM_Utils_Rule::integer($params['id'])) { return civicrm_api3_create_error('Invalid value for ID'); } - + if (!array_key_exists('name', $params) && !array_key_exists('id', $params)) { - $params['name'] = CRM_Utils_String::munge($params['title']); - } - + $params['name'] = CRM_Utils_String::munge($params['title']); + } + $actionSchedule = new CRM_Core_BAO_ActionSchedule(); $actionSchedule = CRM_Core_BAO_ActionSchedule::add($params, $ids); - + $actSchedule = array(); - + _civicrm_api3_object_to_array($actionSchedule, $actSchedule[$actionSchedule->id]); - + return civicrm_api3_create_success($actSchedule, $params, 'action_schedule', 'create', $actionSchedule); } -- 2.25.1