diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-08 11:05:41 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-08 11:05:41 +0100 |
commit | e44be839bb2ba5d90a2b3e8153d22b538f96f03b (patch) | |
tree | 09e9181545ea6943a2b37d3967daa1ba79411ff6 /apps/settings | |
parent | 615721df822763640adac016d9bf5a637c0a0360 (diff) | |
download | nextcloud-server-e44be839bb2ba5d90a2b3e8153d22b538f96f03b.tar.gz nextcloud-server-e44be839bb2ba5d90a2b3e8153d22b538f96f03b.zip |
Fix some types in the Settings Personal pages
* Fix types
* Typed the code
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/lib/Settings/Personal/Additional.php | 8 | ||||
-rw-r--r-- | apps/settings/lib/Settings/Personal/ServerDevNotice.php | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/settings/lib/Settings/Personal/Additional.php b/apps/settings/lib/Settings/Personal/Additional.php index 5fff714b245..a3203431cd8 100644 --- a/apps/settings/lib/Settings/Personal/Additional.php +++ b/apps/settings/lib/Settings/Personal/Additional.php @@ -33,7 +33,7 @@ class Additional implements ISettings { * @return TemplateResponse returns the instance with all parameters set, ready to be rendered * @since 9.1 */ - public function getForm() { + public function getForm(): TemplateResponse { return new TemplateResponse('settings', 'settings/empty'); } @@ -41,7 +41,7 @@ class Additional implements ISettings { * @return string the section ID, e.g. 'sharing' * @since 9.1 */ - public function getSection() { + public function getSection(): string { return 'additional'; } @@ -53,7 +53,7 @@ class Additional implements ISettings { * E.g.: 70 * @since 9.1 */ - public function getPriority() { - return '5'; + public function getPriority(): int { + return 5; } } diff --git a/apps/settings/lib/Settings/Personal/ServerDevNotice.php b/apps/settings/lib/Settings/Personal/ServerDevNotice.php index 1c1c870d8e9..03cea34713c 100644 --- a/apps/settings/lib/Settings/Personal/ServerDevNotice.php +++ b/apps/settings/lib/Settings/Personal/ServerDevNotice.php @@ -74,7 +74,7 @@ class ServerDevNotice implements ISettings { /** * @return TemplateResponse */ - public function getForm() { + public function getForm(): TemplateResponse { $userFolder = $this->rootFolder->getUserFolder($this->userSession->getUser()->getUID()); $hasInitialState = false; @@ -98,9 +98,9 @@ class ServerDevNotice implements ISettings { } /** - * @return string the section ID, e.g. 'sharing' + * @return string|null the section ID, e.g. 'sharing' */ - public function getSection() { + public function getSection(): ?string { if ($this->registry->delegateHasValidSubscription()) { return null; } @@ -115,7 +115,7 @@ class ServerDevNotice implements ISettings { * * E.g.: 70 */ - public function getPriority() { + public function getPriority(): int { return 1000; } } |