diff options
author | Joas Schilling <coding@schilljs.com> | 2019-02-12 18:07:59 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-02-12 18:07:59 +0300 |
commit | fb90a742312eb92898c56451757ebb3a5d916c88 (patch) | |
tree | fad13d0a9e8530e1a791a26d0086e1ee926d8e73 /lib/PublicShareAuth/Listener.php | |
parent | af59422720af0d69a29221d13b1b9b32063db603 (diff) |
Make all classes strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/PublicShareAuth/Listener.php')
-rw-r--r-- | lib/PublicShareAuth/Listener.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/PublicShareAuth/Listener.php b/lib/PublicShareAuth/Listener.php index b622e2162..0e5fd6c97 100644 --- a/lib/PublicShareAuth/Listener.php +++ b/lib/PublicShareAuth/Listener.php @@ -1,6 +1,5 @@ <?php declare(strict_types=1); - /** * * @copyright Copyright (c) 2018, Daniel Calviño Sánchez (danxuliu@gmail.com) @@ -52,7 +51,7 @@ class Listener { $this->dispatcher = $dispatcher; } - public function register() { + public function register(): void { $listener = function(GenericEvent $event) { /** @var Room $room */ $room = $event->getSubject(); @@ -88,7 +87,7 @@ class Listener { * @param string $userId * @throws \OverflowException */ - public function preventExtraUsersFromJoining(Room $room, string $userId) { + public function preventExtraUsersFromJoining(Room $room, string $userId): void { if ($room->getObjectType() !== 'share:password') { return; } @@ -115,7 +114,7 @@ class Listener { * @param Room $room * @throws \OverflowException */ - public function preventExtraGuestsFromJoining(Room $room) { + public function preventExtraGuestsFromJoining(Room $room): void { if ($room->getObjectType() !== 'share:password') { return; } @@ -135,7 +134,7 @@ class Listener { * * @param Room $room */ - public function destroyRoomOnParticipantLeave(Room $room) { + public function destroyRoomOnParticipantLeave(Room $room): void { if ($room->getObjectType() !== 'share:password') { return; } |