diff options
author | Joas Schilling <coding@schilljs.com> | 2018-01-17 13:42:02 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-01-18 10:55:44 +0100 |
commit | 19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38 (patch) | |
tree | c87781c3db915aa2bb3a7fe0ff20e4428f423bb3 /apps/updatenotification/lib/Settings/Admin.php | |
parent | 9296116297fb6c46f1f26d745b5fe1f63f6caa2a (diff) | |
download | nextcloud-server-19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38.tar.gz nextcloud-server-19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38.zip |
Make Update notficiations strict and fix all inspections
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/lib/Settings/Admin.php')
-rw-r--r-- | apps/updatenotification/lib/Settings/Admin.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/updatenotification/lib/Settings/Admin.php b/apps/updatenotification/lib/Settings/Admin.php index 1df4827d77f..7fb6cc99dea 100644 --- a/apps/updatenotification/lib/Settings/Admin.php +++ b/apps/updatenotification/lib/Settings/Admin.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2016, ownCloud, Inc. * @@ -56,7 +57,7 @@ class Admin implements ISettings { /** * @return TemplateResponse */ - public function getForm() { + public function getForm(): TemplateResponse { $lastUpdateCheckTimestamp = $this->config->getAppValue('core', 'lastupdatedat'); $lastUpdateCheck = $this->dateTimeFormatter->formatDateTime($lastUpdateCheckTimestamp); @@ -99,7 +100,7 @@ class Admin implements ISettings { /** * @return string the section ID, e.g. 'sharing' */ - public function getSection() { + public function getSection(): string { return 'server'; } @@ -110,7 +111,7 @@ class Admin implements ISettings { * * E.g.: 70 */ - public function getPriority() { + public function getPriority(): int { return 1; } } |