diff --git a/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php b/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php index e10bd9fdf86f4..8255787bdfab5 100644 --- a/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php +++ b/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php @@ -54,7 +54,7 @@ public function __construct(private IJobList $jobsList, public function handle(Event $event): void { if($event instanceof OutOfOfficeClearedEvent) { $this->manager->revertUserStatus($event->getData()->getUser()->getUID(), IUserStatus::MESSAGE_OUT_OF_OFFICE, IUserStatus::DND); - $this->jobsList->remove(UserStatusAutomation::class, ['userId' => $event->getData()->getUser()->getUID()] ); + $this->jobsList->remove(UserStatusAutomation::class, ['userId' => $event->getData()->getUser()->getUID()]); $this->jobsList->scheduleAfter(UserStatusAutomation::class, $this->time->getTime(), ['userId' => $event->getData()->getUser()->getUID()]); return; } @@ -62,7 +62,7 @@ public function handle(Event $event): void { if ($event instanceof OutOfOfficeScheduledEvent || $event instanceof OutOfOfficeChangedEvent) { // This might be overwritten by the office hours automation, but that is ok. This is just in case no office hours are set - $this->jobsList->remove(UserStatusAutomation::class, ['userId' => $event->getData()->getUser()->getUID()] ); + $this->jobsList->remove(UserStatusAutomation::class, ['userId' => $event->getData()->getUser()->getUID()]); $this->jobsList->scheduleAfter(UserStatusAutomation::class, $this->time->getTime(), ['userId' => $event->getData()->getUser()->getUID()]); } }