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/BackgroundJob | |
parent | af59422720af0d69a29221d13b1b9b32063db603 (diff) |
Make all classes strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/BackgroundJob')
-rw-r--r-- | lib/BackgroundJob/ExpireSignalingMessage.php | 6 | ||||
-rw-r--r-- | lib/BackgroundJob/RemoveEmptyRooms.php | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/BackgroundJob/ExpireSignalingMessage.php b/lib/BackgroundJob/ExpireSignalingMessage.php index 51e23b79f..198849a1c 100644 --- a/lib/BackgroundJob/ExpireSignalingMessage.php +++ b/lib/BackgroundJob/ExpireSignalingMessage.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com> * @@ -34,9 +35,6 @@ class ExpireSignalingMessage extends TimedJob { /** @var Messages */ protected $messages; - /** - * @param Messages $messages - */ public function __construct(Messages $messages) { // Every 5 minutes $this->setInterval(60 * 5); @@ -44,7 +42,7 @@ class ExpireSignalingMessage extends TimedJob { $this->messages = $messages; } - protected function run($argument) { + protected function run($argument): void { $this->messages->expireOlderThan(5 * 60); } } diff --git a/lib/BackgroundJob/RemoveEmptyRooms.php b/lib/BackgroundJob/RemoveEmptyRooms.php index 35df6200b..ad9a437d1 100644 --- a/lib/BackgroundJob/RemoveEmptyRooms.php +++ b/lib/BackgroundJob/RemoveEmptyRooms.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2018 Joas Schilling <coding@schilljs.com> * @@ -41,7 +42,8 @@ class RemoveEmptyRooms extends TimedJob { protected $numDeletedRooms = 0; - public function __construct(Manager $manager, ILogger $logger) { + public function __construct(Manager $manager, + ILogger $logger) { // Every 5 minutes $this->setInterval(60 * 5); @@ -49,7 +51,7 @@ class RemoveEmptyRooms extends TimedJob { $this->logger = $logger; } - protected function run($argument) { + protected function run($argument): void { $this->manager->forAllRooms([$this, 'callback']); if ($this->numDeletedRooms) { @@ -60,7 +62,7 @@ class RemoveEmptyRooms extends TimedJob { } } - public function callback(Room $room) { + public function callback(Room $room): void { if ($room->getType() === Room::ONE_TO_ONE_CALL && $room->getNumberOfParticipants(false) <= 1) { $room->deleteRoom(); $this->numDeletedRooms++; |