remove some unused variables & add comments
authoreileen <emcnaughton@wikimedia.org>
Tue, 24 Nov 2015 04:21:00 +0000 (17:21 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 24 Nov 2015 04:21:18 +0000 (17:21 +1300)
CRM/Event/Form/Registration/AdditionalParticipant.php
CRM/Event/Form/Registration/Register.php

index 0f9190decb390c3e63216d68587dd427d341e86f..e0e333c9111760ae22231c004d9c966f7d459141 100644 (file)
@@ -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
index 89c6f573ed7e27785830990247547331051d3665..555b8bbe5a43b37be0fcba3b4d4be7147b369579 100644 (file)
@@ -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