From: Eileen McNaughton Date: Fri, 3 Apr 2015 03:51:28 +0000 (+1300) Subject: minor preliminary cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=431c430bd25e8441a667ff4745dca24873314032;p=civicrm-core.git minor preliminary cleanup --- diff --git a/CRM/Core/Payment/Form.php b/CRM/Core/Payment/Form.php index 244feb78ec..f8ee37e13d 100644 --- a/CRM/Core/Payment/Form.php +++ b/CRM/Core/Payment/Form.php @@ -351,6 +351,9 @@ class CRM_Core_Payment_Form { /** * Make sure that credit card number and cvv are valid. * Called within the scope of a QF formRule function + * + * @param array $values + * @param array $errors */ public static function validateCreditCard($values, &$errors) { if (!empty($values['credit_card_type']) || !empty($values['credit_card_number'])) { @@ -371,13 +374,11 @@ class CRM_Core_Payment_Form { * Map address fields. * * @param int $id - * @param $src - * @param $dst + * @param array $src + * @param array $dst * @param bool $reverse - * - * @return void */ - public static function mapParams($id, &$src, &$dst, $reverse = FALSE) { + public static function mapParams($id, $src, &$dst, $reverse = FALSE) { static $map = NULL; if (!$map) { $map = array( diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index a9677c453b..433e762d8a 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1228,7 +1228,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $params['event_id'], 'financial_type_id'); $this->_params['mode'] = $this->_mode; - //add contribution reocord + //add contribution record $contributions[] = $contribution = CRM_Event_Form_Registration_Confirm::processContribution($this, $this->_params, $result, $contactID, FALSE); // add participant record