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/Listener | |
parent | 851f76ecd2be9302cf7938e287929f9296b398d0 (diff) |
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Listener')
-rw-r--r-- | lib/Listener/CSPListener.php | 2 | ||||
-rw-r--r-- | lib/Listener/FeaturePolicyListener.php | 3 | ||||
-rw-r--r-- | lib/Listener/RestrictStartingCalls.php | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/lib/Listener/CSPListener.php b/lib/Listener/CSPListener.php index a3ce99946..491a0d6fe 100644 --- a/lib/Listener/CSPListener.php +++ b/lib/Listener/CSPListener.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2019, Roeland Jago Douma <roeland@famdouma.nl> @@ -51,5 +52,4 @@ class CSPListener implements IEventListener { $event->addPolicy($csp); } - } diff --git a/lib/Listener/FeaturePolicyListener.php b/lib/Listener/FeaturePolicyListener.php index f80d6f1be..efae3de96 100644 --- a/lib/Listener/FeaturePolicyListener.php +++ b/lib/Listener/FeaturePolicyListener.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2019, Roeland Jago Douma <roeland@famdouma.nl> @@ -30,7 +31,6 @@ use OCP\EventDispatcher\IEventListener; use OCP\Security\FeaturePolicy\AddFeaturePolicyEvent; class FeaturePolicyListener implements IEventListener { - public function handle(Event $event): void { if (!($event instanceof AddFeaturePolicyEvent)) { return; @@ -41,5 +41,4 @@ class FeaturePolicyListener implements IEventListener { $policy->addAllowedMicrophoneDomain('\'self\''); $event->addPolicy($policy); } - } diff --git a/lib/Listener/RestrictStartingCalls.php b/lib/Listener/RestrictStartingCalls.php index f77ff3f4c..623e96538 100644 --- a/lib/Listener/RestrictStartingCalls.php +++ b/lib/Listener/RestrictStartingCalls.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\Listener; - use OCA\Talk\Events\ModifyParticipantEvent; use OCA\Talk\Exceptions\ForbiddenException; use OCA\Talk\Room; @@ -39,7 +39,7 @@ class RestrictStartingCalls { } public static function register(IEventDispatcher $dispatcher): void { - $dispatcher->addListener(Room::EVENT_BEFORE_SESSION_JOIN_CALL, static function(ModifyParticipantEvent $event) { + $dispatcher->addListener(Room::EVENT_BEFORE_SESSION_JOIN_CALL, static function (ModifyParticipantEvent $event) { /** @var self $listener */ $listener = \OC::$server->query(self::class); $listener->checkStartCallPermissions($event); |