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/Collaboration | |
parent | 851f76ecd2be9302cf7938e287929f9296b398d0 (diff) |
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Collaboration')
-rw-r--r-- | lib/Collaboration/Collaborators/Listener.php | 4 | ||||
-rw-r--r-- | lib/Collaboration/Collaborators/RoomPlugin.php | 2 | ||||
-rw-r--r-- | lib/Collaboration/Resources/ConversationProvider.php | 7 | ||||
-rw-r--r-- | lib/Collaboration/Resources/Listener.php | 12 |
4 files changed, 13 insertions, 12 deletions
diff --git a/lib/Collaboration/Collaborators/Listener.php b/lib/Collaboration/Collaborators/Listener.php index 57bd52952..b5b2136ef 100644 --- a/lib/Collaboration/Collaborators/Listener.php +++ b/lib/Collaboration/Collaborators/Listener.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @author Joachim Bauch <mail@joachim-bauch.de> @@ -57,8 +58,7 @@ class Listener { } public static function register(IEventDispatcher $dispatcher): void { - - $dispatcher->addListener(IManager::class . '::filterResults', static function(AutoCompleteEvent $event) { + $dispatcher->addListener(IManager::class . '::filterResults', static function (AutoCompleteEvent $event) { /** @var self $listener */ $listener = \OC::$server->query(self::class); diff --git a/lib/Collaboration/Collaborators/RoomPlugin.php b/lib/Collaboration/Collaborators/RoomPlugin.php index 3a55f7dfd..6d33922f0 100644 --- a/lib/Collaboration/Collaborators/RoomPlugin.php +++ b/lib/Collaboration/Collaborators/RoomPlugin.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @@ -91,5 +92,4 @@ class RoomPlugin implements ISearchPlugin { ] ]; } - } diff --git a/lib/Collaboration/Resources/ConversationProvider.php b/lib/Collaboration/Resources/ConversationProvider.php index d1dde2909..98d48dd26 100644 --- a/lib/Collaboration/Resources/ConversationProvider.php +++ b/lib/Collaboration/Resources/ConversationProvider.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2018 Joas Schilling <coding@schilljs.com> @@ -59,9 +60,9 @@ class ConversationProvider implements IProvider { $iconURL = $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('spreed', 'app-dark.svg')); /** * Disabled for now, because it would show a square avatar - if ($room->getType() === Room::ONE_TO_ONE_CALL) { - $iconURL = $this->urlGenerator->linkToRouteAbsolute('core.avatar.getAvatar', ['userId' => 'admin', 'size' => 32]); - } + * if ($room->getType() === Room::ONE_TO_ONE_CALL) { + * $iconURL = $this->urlGenerator->linkToRouteAbsolute('core.avatar.getAvatar', ['userId' => 'admin', 'size' => 32]); + * } */ return [ diff --git a/lib/Collaboration/Resources/Listener.php b/lib/Collaboration/Resources/Listener.php index 55f600c12..6005aa413 100644 --- a/lib/Collaboration/Resources/Listener.php +++ b/lib/Collaboration/Resources/Listener.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com> @@ -22,7 +23,6 @@ declare(strict_types=1); namespace OCA\Talk\Collaboration\Resources; -use OCA\Talk\Events\AddEmailEvent; use OCA\Talk\Events\AddParticipantsEvent; use OCA\Talk\Events\RemoveParticipantEvent; use OCA\Talk\Events\RemoveUserEvent; @@ -36,7 +36,7 @@ use OCP\IUserManager; class Listener { public static function register(IEventDispatcher $dispatcher): void { - $listener = static function(RoomEvent $event) { + $listener = static function (RoomEvent $event) { $room = $event->getRoom(); /** @var IManager $manager */ $resourceManager = \OC::$server->query(IManager::class); @@ -50,7 +50,7 @@ class Listener { }; $dispatcher->addListener(Room::EVENT_AFTER_ROOM_DELETE, $listener); - $listener = static function(AddParticipantsEvent $event) { + $listener = static function (AddParticipantsEvent $event) { $room = $event->getRoom(); /** @var IManager $manager */ $resourceManager = \OC::$server->query(IManager::class); @@ -74,7 +74,7 @@ class Listener { }; $dispatcher->addListener(Room::EVENT_AFTER_USERS_ADD, $listener); - $listener = static function(RemoveUserEvent $event) { + $listener = static function (RemoveUserEvent $event) { $room = $event->getRoom(); /** @var IManager $manager */ $resourceManager = \OC::$server->query(IManager::class); @@ -88,7 +88,7 @@ class Listener { }; $dispatcher->addListener(Room::EVENT_AFTER_USER_REMOVE, $listener); - $listener = static function(RemoveParticipantEvent $event) { + $listener = static function (RemoveParticipantEvent $event) { $room = $event->getRoom(); /** @var IManager $manager */ $resourceManager = \OC::$server->query(IManager::class); @@ -106,7 +106,7 @@ class Listener { }; $dispatcher->addListener(Room::EVENT_AFTER_PARTICIPANT_REMOVE, $listener); - $listener = static function(RoomEvent $event) { + $listener = static function (RoomEvent $event) { $room = $event->getRoom(); /** @var IManager $manager */ $resourceManager = \OC::$server->query(IManager::class); |