Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-12 18:07:59 +0300
committerJoas Schilling <coding@schilljs.com>2019-02-12 18:07:59 +0300
commitfb90a742312eb92898c56451757ebb3a5d916c88 (patch)
treefad13d0a9e8530e1a791a26d0086e1ee926d8e73 /lib/Notification/Notifier.php
parentaf59422720af0d69a29221d13b1b9b32063db603 (diff)
Make all classes strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Notification/Notifier.php')
-rw-r--r--lib/Notification/Notifier.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php
index e62c56f82..5209cc479 100644
--- a/lib/Notification/Notifier.php
+++ b/lib/Notification/Notifier.php
@@ -182,7 +182,7 @@ class Notifier implements INotifier {
}
$recipient = $this->userManager->get($notification->getUser());
- list($richMessage, $richMessageParameters) = $this->messageParser->parseMessage($room, $comment, $l, $recipient);
+ [$richMessage, $richMessageParameters] = $this->messageParser->parseMessage($room, $comment, $l, $recipient);
$placeholders = $replacements = [];
foreach ($richMessageParameters as $placeholder => $parameter) {
@@ -267,7 +267,7 @@ class Notifier implements INotifier {
* @return string
* @throws \InvalidArgumentException
*/
- protected function getRoomType(Room $room) {
+ protected function getRoomType(Room $room): string {
switch ($room->getType()) {
case Room::ONE_TO_ONE_CALL:
return 'one2one';