Fix typos in comments and remove unused lines
authorMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 27 Apr 2021 09:46:26 +0000 (10:46 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 27 Apr 2021 10:00:40 +0000 (11:00 +0100)
CRM/Campaign/Form/Petition/Signature.php
CRM/Event/Form/Registration.php

index 1ac26d37551a0843a3855cd39ac264ca775f46cb..386dc6fb360aadbf95fc7c25676ff7bf9b136251 100644 (file)
@@ -74,7 +74,7 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
   public $_activityProfileFields;
 
   /**
-   * The id of the survey (petition) we are proceessing
+   * The id of the survey (petition) we are processing
    *
    * @var int
    */
index 4355bd56740ae2e5db8c9062615ffa4abd217717..1eec96b053d9f65c564b54ba58c5807b639aac56 100644 (file)
@@ -30,21 +30,21 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
   const LOCATION_BLOCKS = 1;
 
   /**
-   * The id of the event we are proceessing.
+   * The id of the event we are processing.
    *
    * @var int
    */
   public $_eventId;
 
   /**
-   * The array of ids of all the participant we are proceessing.
+   * The array of ids of all the participant we are processing.
    *
    * @var int
    */
   protected $_participantIDS = NULL;
 
   /**
-   * The id of the participant we are proceessing.
+   * The id of the participant we are processing.
    *
    * @var int
    */
@@ -108,7 +108,7 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
   public $_fields;
 
   /**
-   * The billing location id for this contribiution page.
+   * The billing location id for this contribution page.
    *
    * @var int
    */
@@ -138,8 +138,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
    * @var bool
    *
    */
-
-
   public $_isEventFull;
 
   public $_lineItem;
@@ -210,7 +208,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
 
     //get the additional participant ids.
     $this->_additionalParticipantIds = $this->get('additionalParticipantIds');
-    $config = CRM_Core_Config::singleton();
 
     if (!$this->_values) {
       // create redirect URL to send folks back to event info page is registration not available
@@ -299,7 +296,7 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
       // get the profile ids
       $ufJoinParams = [
         'entity_table' => 'civicrm_event',
-        // CRM-4377: CiviEvent for the main participant, CiviEvent_Additional for additional participants
+        // CRM-4377: CiviEvent for the main participant, CiviEvent_Additional for additional participants
         'module' => 'CiviEvent',
         'entity_id' => $this->_eventId,
       ];
@@ -309,14 +306,14 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
 
       // set profiles for additional participants
       if ($this->_values['event']['is_multiple_registrations']) {
-        // CRM-4377: CiviEvent for the main participant, CiviEvent_Additional for additional participants
+        // CRM-4377: CiviEvent for the main participant, CiviEvent_Additional for additional participants
         $ufJoinParams['module'] = 'CiviEvent_Additional';
 
         list($this->_values['additional_custom_pre_id'],
           $this->_values['additional_custom_post_id'], $preActive, $postActive
           ) = CRM_Core_BAO_UFJoin::getUFGroupIds($ufJoinParams);
 
-        // CRM-4377: we need to maintain backward compatibility, hence if there is profile for main contact
+        // CRM-4377: we need to maintain backward compatibility, hence if there is profile for main contact
         // set same profile for additional contacts.
         if ($this->_values['custom_pre_id'] && !$this->_values['additional_custom_pre_id']) {
           $this->_values['additional_custom_pre_id'] = $this->_values['custom_pre_id'];
@@ -467,9 +464,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
       );
     }
 
-    // get the email that the confirmation would have been sent to
-    $session = CRM_Core_Session::singleton();
-
     // assign is_email_confirm to templates
     if (isset($this->_values['event']['is_email_confirm'])) {
       $this->assign('is_email_confirm', $this->_values['event']['is_email_confirm']);