From 485d8ab204bdbd044d15df7f30267ee669940b72 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 28 Dec 2023 10:13:35 +1300 Subject: [PATCH] [NFC] Superficial cleanup --- CRM/Event/Form/Registration/AdditionalParticipant.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CRM/Event/Form/Registration/AdditionalParticipant.php b/CRM/Event/Form/Registration/AdditionalParticipant.php index 81ee3e4d07..92a59c3fee 100644 --- a/CRM/Event/Form/Registration/AdditionalParticipant.php +++ b/CRM/Event/Form/Registration/AdditionalParticipant.php @@ -51,6 +51,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R * Set variables up before form is built. * * @return void + * @throws CRM_Core_Exception */ public function preProcess() { parent::preProcess(); @@ -110,7 +111,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R $optionsFull = CRM_Utils_Array::value('option_full_ids', $val, []); foreach ($val['options'] as $keys => $values) { if ($values['is_default'] && !in_array($keys, $optionsFull)) { - if ($val['html_type'] == 'CheckBox') { + if ($val['html_type'] === 'CheckBox') { $defaults["price_{$key}"][$keys] = 1; } else { @@ -395,7 +396,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R $realPayLater = $self->_params[0]['is_pay_later'] ?? NULL; } - if ($button != 'skip') { + if ($button !== 'skip') { //Check that either an email or firstname+lastname is included in the form(CRM-9587) CRM_Event_Form_Registration_Register::checkProfileComplete($fields, $errors, $self->_eventId); @@ -721,7 +722,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R } $participantNo = count($this->_params); - if ($button != 'skip') { + if ($button !== 'skip') { $statusMsg = ts('Registration information for participant %1 has been saved.', [1 => $participantNo]); CRM_Core_Session::setStatus($statusMsg, ts('Registration Saved'), 'success'); } -- 2.25.1