diff options
author | Joas Schilling <coding@schilljs.com> | 2020-05-12 16:04:42 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-05-12 16:04:42 +0300 |
commit | 84d42604e60aa1c31ecf698dcc069f36c494148a (patch) | |
tree | 0c881194abad7aa1d6c103f1bad2b201b1c7acd4 /lib/Activity | |
parent | 851f76ecd2be9302cf7938e287929f9296b398d0 (diff) |
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Activity')
-rw-r--r-- | lib/Activity/Listener.php | 7 | ||||
-rw-r--r-- | lib/Activity/Provider/Base.php | 1 | ||||
-rw-r--r-- | lib/Activity/Provider/Call.php | 2 | ||||
-rw-r--r-- | lib/Activity/Provider/Invitation.php | 2 | ||||
-rw-r--r-- | lib/Activity/Setting.php | 3 |
5 files changed, 8 insertions, 7 deletions
diff --git a/lib/Activity/Listener.php b/lib/Activity/Listener.php index 53c4c13c9..6a17d78f6 100644 --- a/lib/Activity/Listener.php +++ b/lib/Activity/Listener.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com> @@ -64,14 +65,14 @@ class Listener { } public static function register(IEventDispatcher $dispatcher): void { - $listener = static function(ModifyParticipantEvent $event) { + $listener = static function (ModifyParticipantEvent $event) { /** @var self $listener */ $listener = \OC::$server->query(self::class); $listener->setActive($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->generateCallActivity($event->getRoom()); @@ -81,7 +82,7 @@ class Listener { $dispatcher->addListener(Room::EVENT_AFTER_SESSION_LEAVE_CALL, $listener, -100); $dispatcher->addListener(Room::EVENT_AFTER_ROOM_DISCONNECT, $listener, -100); - $listener = static function(AddParticipantsEvent $event) { + $listener = static function (AddParticipantsEvent $event) { /** @var self $listener */ $listener = \OC::$server->query(self::class); $listener->generateInvitationActivity($event->getRoom(), $event->getParticipants()); diff --git a/lib/Activity/Provider/Base.php b/lib/Activity/Provider/Base.php index 857cc9a54..1aa7c7b03 100644 --- a/lib/Activity/Provider/Base.php +++ b/lib/Activity/Provider/Base.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com> diff --git a/lib/Activity/Provider/Call.php b/lib/Activity/Provider/Call.php index b67f694d4..3a134ccd0 100644 --- a/lib/Activity/Provider/Call.php +++ b/lib/Activity/Provider/Call.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com> @@ -146,5 +147,4 @@ class Call extends Base { 'params' => $params, ]; } - } diff --git a/lib/Activity/Provider/Invitation.php b/lib/Activity/Provider/Invitation.php index 251f21ef6..33ff9becf 100644 --- a/lib/Activity/Provider/Invitation.php +++ b/lib/Activity/Provider/Invitation.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com> @@ -59,5 +60,4 @@ class Invitation extends Base { return $event; } - } diff --git a/lib/Activity/Setting.php b/lib/Activity/Setting.php index df20ba047..e913f4e15 100644 --- a/lib/Activity/Setting.php +++ b/lib/Activity/Setting.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com> @@ -22,7 +23,6 @@ declare(strict_types=1); namespace OCA\Talk\Activity; - use OCP\Activity\ISetting; use OCP\IL10N; @@ -93,4 +93,3 @@ class Setting implements ISetting { return false; } } - |