* Set variables up before form is built.
*
* @return void
+ * @throws CRM_Core_Exception
*/
public function preProcess() {
parent::preProcess();
$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 {
$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);
}
$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');
}