@@ -207,7 +207,7 @@ function (CacheItemInterface $item) use ($slide, $resource, $interactionRequest,
207
207
foreach ($ watchedResources as $ key => $ watchResource ) {
208
208
$ schedule = $ schedules [$ watchResource ] ?? null ;
209
209
210
- if ($ schedule == null ) {
210
+ if (null == $ schedule ) {
211
211
unset($ watchedResources [$ key ]);
212
212
}
213
213
@@ -232,7 +232,7 @@ function (CacheItemInterface $item) use ($entry) {
232
232
$ this ->interactiveSlideCache ->get (self ::CACHE_KEY_RESOURCES , fn () => $ watchedResources );
233
233
234
234
return $ result ;
235
- } catch (InteractiveSlideException $ e ) {
235
+ } catch (InteractiveSlideException ) {
236
236
return [
237
237
'resource ' => $ resource ,
238
238
'from ' => $ startFormatted ,
@@ -243,15 +243,15 @@ function (CacheItemInterface $item) use ($entry) {
243
243
);
244
244
}
245
245
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
247
247
{
248
248
$ entry = [
249
249
'resource ' => $ resource ,
250
250
'from ' => $ startFormatted ,
251
251
'options ' => [],
252
252
];
253
253
254
- if ($ schedules === null ) {
254
+ if (null === $ schedules ) {
255
255
return $ entry ;
256
256
}
257
257
@@ -409,7 +409,7 @@ public function getBusyIntervals(string $token, array $resources, \DateTime $sta
409
409
$ scheduleId = $ schedule ['scheduleId ' ] ?? null ;
410
410
$ scheduleItems = $ schedule ['scheduleItems ' ] ?? null ;
411
411
412
- if ($ scheduleId === null ||$ scheduleItems === null ) {
412
+ if (null === $ scheduleId || null === $ scheduleItems ) {
413
413
continue ;
414
414
}
415
415
0 commit comments