@@ -15,25 +15,25 @@ |
||
| 15 | 15 | use OCP\SetupCheck\SetupResult; |
| 16 | 16 | |
| 17 | 17 | class NeedNotificationsApp implements ISetupCheck { |
| 18 | - public function __construct( |
|
| 19 | - private IAppManager $appManager, |
|
| 20 | - private IL10N $l10n, |
|
| 21 | - ) { |
|
| 22 | - } |
|
| 23 | - |
|
| 24 | - public function getName(): string { |
|
| 25 | - return $this->l10n->t('Files reminder'); |
|
| 26 | - } |
|
| 27 | - |
|
| 28 | - public function getCategory(): string { |
|
| 29 | - return 'system'; |
|
| 30 | - } |
|
| 31 | - |
|
| 32 | - public function run(): SetupResult { |
|
| 33 | - if ($this->appManager->isEnabledForAnyone('notifications')) { |
|
| 34 | - return SetupResult::success($this->l10n->t('The "files_reminders" app can work properly.')); |
|
| 35 | - } else { |
|
| 36 | - return SetupResult::warning($this->l10n->t('The "files_reminders" app needs the notification app to work properly. You should either enable notifications or disable files_reminder.')); |
|
| 37 | - } |
|
| 38 | - } |
|
| 18 | + public function __construct( |
|
| 19 | + private IAppManager $appManager, |
|
| 20 | + private IL10N $l10n, |
|
| 21 | + ) { |
|
| 22 | + } |
|
| 23 | + |
|
| 24 | + public function getName(): string { |
|
| 25 | + return $this->l10n->t('Files reminder'); |
|
| 26 | + } |
|
| 27 | + |
|
| 28 | + public function getCategory(): string { |
|
| 29 | + return 'system'; |
|
| 30 | + } |
|
| 31 | + |
|
| 32 | + public function run(): SetupResult { |
|
| 33 | + if ($this->appManager->isEnabledForAnyone('notifications')) { |
|
| 34 | + return SetupResult::success($this->l10n->t('The "files_reminders" app can work properly.')); |
|
| 35 | + } else { |
|
| 36 | + return SetupResult::warning($this->l10n->t('The "files_reminders" app needs the notification app to work properly. You should either enable notifications or disable files_reminder.')); |
|
| 37 | + } |
|
| 38 | + } |
|
| 39 | 39 | } |