From: eileen Date: Tue, 24 Nov 2015 04:21:00 +0000 (+1300) Subject: remove some unused variables & add comments X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5f39c1a64275ed2cb61f56f414a864d778112310;p=civicrm-core.git remove some unused variables & add comments --- diff --git a/CRM/Event/Form/Registration/AdditionalParticipant.php b/CRM/Event/Form/Registration/AdditionalParticipant.php index 0f9190decb..e0e333c911 100644 --- a/CRM/Event/Form/Registration/AdditionalParticipant.php +++ b/CRM/Event/Form/Registration/AdditionalParticipant.php @@ -155,7 +155,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R * @return void */ public function buildQuickForm() { - $config = CRM_Core_Config::singleton(); + $button = substr($this->controller->getButtonName(), -4); $this->add('hidden', 'scriptFee', NULL); @@ -226,6 +226,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R } //we might did reset allow waiting in case of dynamic calculation + // @TODO - does this bypass_payment still exist? if (!empty($this->_params[0]['bypass_payment']) && is_numeric($spaces) && $processedCnt > $spaces diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 89c6f573ed..555b8bbe5a 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -275,8 +275,6 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { /** * Build the form object. - * - * @return void */ public function buildQuickForm() { // build profiles first so that we can determine address fields etc @@ -323,7 +321,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { 8 => '9', 9 => '10', ); - $element = $this->add('select', 'additional_participants', + $this->add('select', 'additional_participants', ts('How many people are you registering?'), $additionalOptions, NULL, @@ -522,8 +520,6 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { * True if you want to add formRule. * @param int $discountId * Discount id for the event. - * - * @return void */ static public function buildAmount(&$form, $required = TRUE, $discountId = NULL) { // build amount only when needed, skip incase of event full and waitlisting is enabled