INFRA-132 - Put "else" and "catch" on new line
[civicrm-core.git] / CRM / Event / Form / Registration.php
index 0fbfed5d2531256f94852279710a42746fbca68a..ddb881f5716c7b98e5fc967e5d8336174219ea84 100644 (file)
@@ -178,7 +178,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
    * Set variables up before form is built
    *
    * @return void
-   * @access public
    */
   public function preProcess() {
     $this->_eventId = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE);
@@ -463,7 +462,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
    * Assign the minimal set of variables to the template
    *
    * @return void
-   * @access public
    */
   public function assignToTemplate() {
     //process only primary participant params
@@ -563,7 +561,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
    * @param bool $viewOnly
    *
    * @return void
-   * @access public
    */
   public function buildCustom($id, $name, $viewOnly = FALSE) {
     if ($id) {
@@ -725,7 +722,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
    * @param null $payment
    *
    * @return void
-   * @access public
    */
   public function confirmPostProcess($contactID = NULL, $contribution = NULL, $payment = NULL) {
     // add/update contact information
@@ -795,7 +791,8 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
 
       if (array_key_exists('email-5', $this->_params)) {
       $mail = 'email-5';
-      } else {
+      }
+      else {
         foreach ($this->_params as $name => $dontCare) {
           if (substr($name, 0, 5) == 'email') {
             $mail = $name;
@@ -827,7 +824,6 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
    * @param int $contactID
    *
    * @return void
-   * @access public
    */
   public static function addParticipant(&$form, $contactID) {
     if (empty($form->_params)) {
@@ -929,10 +925,10 @@ WHERE  v.option_group_id = g.id
 
   /* Calculate the total participant count as per params.
    *
-   * @param  array $params user params.
+   * @param array $params
+   *   User params.
    *
    * @return $totalCount total participant count.
-   * @access public
    */
   /**
    * @param CRM_Core_Form $form
@@ -1027,11 +1023,11 @@ WHERE  v.option_group_id = g.id
   /* Format user submitted price set params.
    * Convert price set each param as an array.
    *
-   * @param $params an array of user submitted params.
+   * @param $params
+   *   An array of user submitted params.
    *
    *
    * @return array $formatted, formatted price set params.
-   * @access public
    */
   /**
    * @param CRM_Core_Form $form
@@ -1077,11 +1073,11 @@ WHERE  v.option_group_id = g.id
   /* Calculate total count for each price set options.
    * those are currently selected by user.
    *
-   * @param $form form object.
+   * @param $form
+   *   Form object.
    *
    *
    * @return array $optionsCount, array of each option w/ count total.
-   * @access public
    */
   /**
    * @param $form
@@ -1405,4 +1401,3 @@ WHERE  v.option_group_id = g.id
     }
   }
 }
-