From 2ce7911856a8e3a98fa502ad118752782d9a1fb2 Mon Sep 17 00:00:00 2001 From: Jonathan Flueren Date: Mon, 23 May 2022 22:21:41 +0200 Subject: [PATCH] Simplify null value check --- lib/Controller/EpisodeActionController.php | 2 +- lib/Controller/SubscriptionChangeController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Controller/EpisodeActionController.php b/lib/Controller/EpisodeActionController.php index cdefe1f..761979c 100644 --- a/lib/Controller/EpisodeActionController.php +++ b/lib/Controller/EpisodeActionController.php @@ -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; } diff --git a/lib/Controller/SubscriptionChangeController.php b/lib/Controller/SubscriptionChangeController.php index 9059aa0..6911973 100644 --- a/lib/Controller/SubscriptionChangeController.php +++ b/lib/Controller/SubscriptionChangeController.php @@ -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 ?? ''; } /**