summaryrefslogtreecommitdiffstats
path: root/lib/Notification/Listener.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-05-12 15:04:42 +0200
committerJoas Schilling <coding@schilljs.com>2020-05-12 15:04:42 +0200
commit84d42604e60aa1c31ecf698dcc069f36c494148a (patch)
tree0c881194abad7aa1d6c103f1bad2b201b1c7acd4 /lib/Notification/Listener.php
parent851f76ecd2be9302cf7938e287929f9296b398d0 (diff)
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Notification/Listener.php')
-rw-r--r--lib/Notification/Listener.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/Notification/Listener.php b/lib/Notification/Listener.php
index 9f1a38e29..765a35f3c 100644
--- a/lib/Notification/Listener.php
+++ b/lib/Notification/Listener.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
@@ -58,7 +59,7 @@ class Listener {
}
public static function register(IEventDispatcher $dispatcher): void {
- $listener = static function(AddParticipantsEvent $event) {
+ $listener = static function (AddParticipantsEvent $event) {
$room = $event->getRoom();
if ($room->getObjectType() === 'file') {
@@ -71,28 +72,28 @@ class Listener {
};
$dispatcher->addListener(Room::EVENT_AFTER_USERS_ADD, $listener);
- $listener = static function(JoinRoomUserEvent $event) {
+ $listener = static function (JoinRoomUserEvent $event) {
/** @var self $listener */
$listener = \OC::$server->query(self::class);
$listener->markInvitationRead($event->getRoom());
};
$dispatcher->addListener(Room::EVENT_AFTER_ROOM_CONNECT, $listener);
- $listener = static function(RoomEvent $event) {
+ $listener = static function (RoomEvent $event) {
/** @var self $listener */
$listener = \OC::$server->query(self::class);
$listener->checkCallNotifications($event->getRoom());
};
$dispatcher->addListener(Room::EVENT_BEFORE_SESSION_JOIN_CALL, $listener);
- $listener = static function(RoomEvent $event) {
+ $listener = static function (RoomEvent $event) {
/** @var self $listener */
$listener = \OC::$server->query(self::class);
$listener->sendCallNotifications($event->getRoom());
};
$dispatcher->addListener(Room::EVENT_AFTER_SESSION_JOIN_CALL, $listener);
- $listener = static function(RoomEvent $event) {
+ $listener = static function (RoomEvent $event) {
/** @var self $listener */
$listener = \OC::$server->query(self::class);
$listener->markCallNotificationsRead($event->getRoom());
@@ -211,8 +212,8 @@ class Listener {
$this->notificationManager->markProcessed($notification);
$notification->setSubject('call', [
- 'callee' => $actorId,
- ])
+ 'callee' => $actorId,
+ ])
->setDateTime($dateTime);
} catch (\InvalidArgumentException $e) {
$this->logger->logException($e, ['app' => 'spreed']);