@@ -207,7 +207,7 @@ function (CacheItemInterface $item) use ($slide, $resource, $interactionRequest,
207207 foreach ($ watchedResources as $ key => $ watchResource ) {
208208 $ schedule = $ schedules [$ watchResource ] ?? null ;
209209
210- if ($ schedule == null ) {
210+ if (null == $ schedule ) {
211211 unset($ watchedResources [$ key ]);
212212 }
213213
@@ -232,7 +232,7 @@ function (CacheItemInterface $item) use ($entry) {
232232 $ this ->interactiveSlideCache ->get (self ::CACHE_KEY_RESOURCES , fn () => $ watchedResources );
233233
234234 return $ result ;
235- } catch (InteractiveSlideException $ e ) {
235+ } catch (InteractiveSlideException ) {
236236 return [
237237 'resource ' => $ resource ,
238238 'from ' => $ startFormatted ,
@@ -243,15 +243,15 @@ function (CacheItemInterface $item) use ($entry) {
243243 );
244244 }
245245
246- private function createEntry (string $ resource , string $ startFormatted , \DateTime $ start , array $ schedules = null ): array
246+ private function createEntry (string $ resource , string $ startFormatted , \DateTime $ start , ? array $ schedules = null ): array
247247 {
248248 $ entry = [
249249 'resource ' => $ resource ,
250250 'from ' => $ startFormatted ,
251251 'options ' => [],
252252 ];
253253
254- if ($ schedules === null ) {
254+ if (null === $ schedules ) {
255255 return $ entry ;
256256 }
257257
@@ -409,7 +409,7 @@ public function getBusyIntervals(string $token, array $resources, \DateTime $sta
409409 $ scheduleId = $ schedule ['scheduleId ' ] ?? null ;
410410 $ scheduleItems = $ schedule ['scheduleItems ' ] ?? null ;
411411
412- if ($ scheduleId === null ||$ scheduleItems === null ) {
412+ if (null === $ scheduleId || null === $ scheduleItems ) {
413413 continue ;
414414 }
415415
0 commit comments