summaryrefslogtreecommitdiffstats
path: root/apps/comments/lib/Search/CommentsSearchProvider.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-03-15 17:17:36 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-03-16 13:14:15 +0100
commitfa266165d6d38f963dd44e227ee076799697f482 (patch)
tree482f7ad48d68e4fc233cb9857eee41ad35df8f8d /apps/comments/lib/Search/CommentsSearchProvider.php
parent3e067edcbe80797a70118f613ac4b752ce512992 (diff)
downloadnextcloud-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/Search/CommentsSearchProvider.php')
-rw-r--r--apps/comments/lib/Search/CommentsSearchProvider.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/apps/comments/lib/Search/CommentsSearchProvider.php b/apps/comments/lib/Search/CommentsSearchProvider.php
index 796e87ad4bb..b36f82f8401 100644
--- a/apps/comments/lib/Search/CommentsSearchProvider.php
+++ b/apps/comments/lib/Search/CommentsSearchProvider.php
@@ -40,17 +40,10 @@ use function pathinfo;
class CommentsSearchProvider implements IProvider {
- /** @var IUserManager */
- private $userManager;
-
- /** @var IL10N */
- private $l10n;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- /** @var LegacyProvider */
- private $legacyProvider;
+ private IUserManager $userManager;
+ private IL10N $l10n;
+ private IURLGenerator $urlGenerator;
+ private LegacyProvider $legacyProvider;
public function __construct(IUserManager $userManager,
IL10N $l10n,