Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion UserInQueueService.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ private function getQueryString(

private function generateRedirectUrl($queueDomain, $uriPath, $query)
{
if (substr($queueDomain, -1) !== "/")
if (substr($queueDomain ?? '', -1) !== "/")
$queueDomain = $queueDomain . "/";

return "https://" . $queueDomain . $uriPath . "?" . $query;
Expand Down
4 changes: 2 additions & 2 deletions UserInQueueStateCookieRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ private function createCookieValue($eventId, $queueId, $fixedCookieValidityMinut

private function getCookieNameValueMap($cookieValue) {
$result = array();
$cookieNameValues = explode("&", $cookieValue);
$cookieNameValues = explode("&", $cookieValue ?? '');
$length = count($cookieNameValues);

for ($i = 0; $i < $length; ++$i) {
$arr = explode("=", $cookieNameValues[$i]);
$arr = explode("=", $cookieNameValues[$i] ?? '');
Copy link

@crishoj crishoj Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest keeping 4 spaces as indentation, as seems to be the convention here

if (count($arr) == 2) {
$result[$arr[0]] = $arr[1];
}
Expand Down