Coding standards cleanup sprint.
[civicrm-core.git] / CRM / Campaign / Form / Petition / Signature.php
index 1fe046fcad08f819e18f56064a8fa47dd0fa72b6..a4ee3f0d0c7a996d303312ad5cec976d04d2b320 100644 (file)
@@ -221,7 +221,6 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
       CRM_Core_Error::fatal('The contact profile needs to contain the primary email address field');
     }
 
-
     $ufJoinParams['weight'] = 1;
     $this->_activityProfileId = CRM_Core_BAO_UFJoin::findUFGroupId($ufJoinParams);
 
@@ -326,7 +325,6 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
    * @return void
    * @see valid_date
    */
-
   public static function formRule($fields, $files, $errors) {
     $errors = array();
 
@@ -344,7 +342,6 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
       'tag_unconfirmed'
     );
 
-
     if ($tag_name) {
       // Check if contact 'email confirmed' tag exists, else create one
       // This should be in the petition module initialise code to create a default tag for this
@@ -496,7 +493,6 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
         break;
     }
 
-
     $transaction = new CRM_Core_Transaction();
 
     $addToGroupID = isset($this->_addToGroupID) ? $this->_addToGroupID : NULL;
@@ -570,11 +566,10 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
       $this->postProcessHook();
 
       // set the template to thank you
-      $url =
-        CRM_Utils_System::url(
-          'civicrm/petition/thankyou',
-          'pid=' . $this->_surveyId . '&id=' . $this->_sendEmailMode . '&reset=1'
-        );
+      $url = CRM_Utils_System::url(
+        'civicrm/petition/thankyou',
+        'pid=' . $this->_surveyId . '&id=' . $this->_sendEmailMode . '&reset=1'
+      );
       CRM_Utils_System::redirect($url);
     }
   }
@@ -608,16 +603,6 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
       }
 
       if ($fields) {
-        /*
-                // unset any email-* fields since we already collect it, CRM-2888
-                foreach ( array_keys( $fields ) as $fieldName ) {
-                    if ( substr( $fieldName, 0, 6 ) == 'email-' ) {
-                        unset( $fields[$fieldName] );
-                    }
-                }
-                */
-
-
         $this->assign($name, $fields);
 
         $addCaptcha = FALSE;