Simplify null value check

This commit is contained in:
Jonathan Flueren 2022-05-23 22:21:41 +02:00 committed by thrillfall
parent 0d6492e99d
commit 2ce7911856
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class EpisodeActionController extends Controller {
) {
parent::__construct($AppName, $request);
$this->episodeActionRepository = $episodeActionRepository;
$this->userId = $UserId !== null ? $UserId : '';
$this->userId = $UserId ?? '';
$this->episodeActionSaver = $episodeActionSaver;
$this->request = $request;
}

View File

@ -28,7 +28,7 @@ class SubscriptionChangeController extends Controller {
parent::__construct($AppName, $request);
$this->subscriptionChangeSaver = $subscriptionChangeSaver;
$this->subscriptionChangeRepository = $subscriptionChangeRepository;
$this->userId = $UserId !== null ? $UserId : '';
$this->userId = $UserId ?? '';
}
/**