diff options
author | Anna Larch <anna@nextcloud.com> | 2024-09-05 21:23:38 +0200 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2024-09-05 21:23:38 +0200 |
commit | 8af7ecb2576071f170ecbb0aa2311b26581e40e2 (patch) | |
tree | 9a8f3595cb28493368f78b0a049254d0a256b3c1 /apps/user_status/lib | |
parent | 4566cf791d55f1202f4a1888b9cd23a7be0ed2c9 (diff) | |
download | nextcloud-server-8af7ecb2576071f170ecbb0aa2311b26581e40e2.tar.gz nextcloud-server-8af7ecb2576071f170ecbb0aa2311b26581e40e2.zip |
chore: adjust code to adhere to coding standard
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/user_status/lib')
-rw-r--r-- | apps/user_status/lib/Listener/OutOfOfficeStatusListener.php | 2 | ||||
-rw-r--r-- | apps/user_status/lib/Listener/UserLiveStatusListener.php | 2 | ||||
-rw-r--r-- | apps/user_status/lib/Service/StatusService.php | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php b/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php index 7fe08e9719b..23dec452928 100644 --- a/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php +++ b/apps/user_status/lib/Listener/OutOfOfficeStatusListener.php @@ -37,7 +37,7 @@ class OutOfOfficeStatusListener implements IEventListener { * @inheritDoc */ public function handle(Event $event): void { - if($event instanceof OutOfOfficeClearedEvent) { + if ($event instanceof OutOfOfficeClearedEvent) { $this->manager->revertUserStatus($event->getData()->getUser()->getUID(), IUserStatus::MESSAGE_OUT_OF_OFFICE, IUserStatus::DND); $this->jobsList->scheduleAfter(UserStatusAutomation::class, $this->time->getTime(), ['userId' => $event->getData()->getUser()->getUID()]); return; diff --git a/apps/user_status/lib/Listener/UserLiveStatusListener.php b/apps/user_status/lib/Listener/UserLiveStatusListener.php index fa4ff8e4aba..ea8d995b8a3 100644 --- a/apps/user_status/lib/Listener/UserLiveStatusListener.php +++ b/apps/user_status/lib/Listener/UserLiveStatusListener.php @@ -72,7 +72,7 @@ class UserLiveStatusListener implements IEventListener { } // Don't overwrite the "away" calendar status if it's set - if($userStatus->getMessageId() === IUserStatus::MESSAGE_CALENDAR_BUSY) { + if ($userStatus->getMessageId() === IUserStatus::MESSAGE_CALENDAR_BUSY) { $event->setUserStatus(new ConnectorUserStatus($userStatus)); return; } diff --git a/apps/user_status/lib/Service/StatusService.php b/apps/user_status/lib/Service/StatusService.php index 2a761a0f304..9adc13e4dbf 100644 --- a/apps/user_status/lib/Service/StatusService.php +++ b/apps/user_status/lib/Service/StatusService.php @@ -499,10 +499,10 @@ class StatusService { return; } // If there is a custom message, don't overwrite it - if(empty($status->getCustomMessage())) { + if (empty($status->getCustomMessage())) { $status->setCustomMessage($predefinedMessage['message']); } - if(empty($status->getCustomIcon())) { + if (empty($status->getCustomIcon())) { $status->setCustomIcon($predefinedMessage['icon']); } } |