From 84d42604e60aa1c31ecf698dcc069f36c494148a Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 12 May 2020 15:04:42 +0200 Subject: Run cs:fix Signed-off-by: Joas Schilling --- lib/Collaboration/Collaborators/Listener.php | 4 ++-- lib/Collaboration/Collaborators/RoomPlugin.php | 2 +- lib/Collaboration/Resources/ConversationProvider.php | 7 ++++--- lib/Collaboration/Resources/Listener.php | 12 ++++++------ 4 files changed, 13 insertions(+), 12 deletions(-) (limited to 'lib/Collaboration') 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 @@ @@ -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 @@ @@ -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 @@ @@ -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); -- cgit v1.2.3