Simplify null value check
This commit is contained in:
parent
0d6492e99d
commit
2ce7911856
@ -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;
|
||||
}
|
||||
|
@ -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 ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user