Skip to content

Commit

Permalink
[TASK] Avoid usage of PHP list() function
Browse files Browse the repository at this point in the history
Refs #1158
  • Loading branch information
derhansen committed Sep 17, 2023
1 parent 57665de commit 957c75b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Controller/EventController.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public function saveRegistrationAction(Registration $registration, Event $event)
$autoConfirmation = (bool)($this->settings['registration']['autoConfirmation'] ?? false) ||
$event->getEnableAutoconfirm();
$result = RegistrationResult::REGISTRATION_SUCCESSFUL;
list($success, $result) = $this->registrationService->checkRegistrationSuccess($event, $registration, $result);
[$success, $result] = $this->registrationService->checkRegistrationSuccess($event, $registration, $result);

// Save registration if no errors
$registrationUid = 0;
Expand Down Expand Up @@ -678,7 +678,7 @@ public function confirmRegistrationAction(int $reguid, string $hmac): ResponseIn
$event = null;

/* @var $registration Registration */
list($failed, $registration, $messageKey, $titleKey) = $this->registrationService->checkConfirmRegistration(
[$failed, $registration, $messageKey, $titleKey] = $this->registrationService->checkConfirmRegistration(
$reguid,
$hmac
);
Expand Down Expand Up @@ -785,7 +785,7 @@ public function cancelRegistrationAction(int $reguid, string $hmac): ResponseInt
$event = null;

/* @var $registration Registration */
list($failed, $registration, $messageKey, $titleKey) =
[$failed, $registration, $messageKey, $titleKey] =
$this->registrationService->checkCancelRegistration($reguid, $hmac);

if ($failed === false) {
Expand Down

0 comments on commit 957c75b

Please sign in to comment.