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);
|
parent::__construct($AppName, $request);
|
||||||
$this->episodeActionRepository = $episodeActionRepository;
|
$this->episodeActionRepository = $episodeActionRepository;
|
||||||
$this->userId = $UserId !== null ? $UserId : '';
|
$this->userId = $UserId ?? '';
|
||||||
$this->episodeActionSaver = $episodeActionSaver;
|
$this->episodeActionSaver = $episodeActionSaver;
|
||||||
$this->request = $request;
|
$this->request = $request;
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ class SubscriptionChangeController extends Controller {
|
|||||||
parent::__construct($AppName, $request);
|
parent::__construct($AppName, $request);
|
||||||
$this->subscriptionChangeSaver = $subscriptionChangeSaver;
|
$this->subscriptionChangeSaver = $subscriptionChangeSaver;
|
||||||
$this->subscriptionChangeRepository = $subscriptionChangeRepository;
|
$this->subscriptionChangeRepository = $subscriptionChangeRepository;
|
||||||
$this->userId = $UserId !== null ? $UserId : '';
|
$this->userId = $UserId ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user