aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Notification/Notifier.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/lib/Notification/Notifier.php')
-rw-r--r--apps/user_ldap/lib/Notification/Notifier.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/user_ldap/lib/Notification/Notifier.php b/apps/user_ldap/lib/Notification/Notifier.php
index ca0fa6f0335..0195cb9e65b 100644
--- a/apps/user_ldap/lib/Notification/Notifier.php
+++ b/apps/user_ldap/lib/Notification/Notifier.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -12,14 +13,12 @@ use OCP\Notification\UnknownNotificationException;
class Notifier implements INotifier {
- /** @var IFactory */
- protected $l10nFactory;
-
/**
* @param IFactory $l10nFactory
*/
- public function __construct(\OCP\L10N\IFactory $l10nFactory) {
- $this->l10nFactory = $l10nFactory;
+ public function __construct(
+ protected IFactory $l10nFactory,
+ ) {
}
/**
@@ -61,7 +60,7 @@ class Notifier implements INotifier {
// Deal with known subjects
case 'pwd_exp_warn_days':
$params = $notification->getSubjectParameters();
- $days = (int) $params[0];
+ $days = (int)$params[0];
if ($days === 2) {
$notification->setParsedSubject($l->t('Your password will expire tomorrow.'));
} elseif ($days === 1) {