diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-03-15 17:17:36 +0100 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-03-16 13:14:15 +0100 |
commit | fa266165d6d38f963dd44e227ee076799697f482 (patch) | |
tree | 482f7ad48d68e4fc233cb9857eee41ad35df8f8d /apps/comments/lib/Notification/Notifier.php | |
parent | 3e067edcbe80797a70118f613ac4b752ce512992 (diff) | |
download | nextcloud-server-fa266165d6d38f963dd44e227ee076799697f482.tar.gz nextcloud-server-fa266165d6d38f963dd44e227ee076799697f482.zip |
Modernize comments app
* Use php 7.4 typed properties
* More typed methods (and replace existing php doc in some cases)
* query -> get for Container
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/comments/lib/Notification/Notifier.php')
-rw-r--r-- | apps/comments/lib/Notification/Notifier.php | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/apps/comments/lib/Notification/Notifier.php b/apps/comments/lib/Notification/Notifier.php index 745cb513978..7c6a40133ee 100644 --- a/apps/comments/lib/Notification/Notifier.php +++ b/apps/comments/lib/Notification/Notifier.php @@ -38,20 +38,11 @@ use OCP\Notification\INotifier; class Notifier implements INotifier { - /** @var IFactory */ - protected $l10nFactory; - - /** @var IRootFolder */ - protected $rootFolder; - - /** @var ICommentsManager */ - protected $commentsManager; - - /** @var IURLGenerator */ - protected $url; - - /** @var IUserManager */ - protected $userManager; + protected IFactory $l10nFactory; + protected IRootFolder $rootFolder; + protected ICommentsManager $commentsManager; + protected IURLGenerator $url; + protected IUserManager $userManager; public function __construct( IFactory $l10nFactory, |