diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-11-11 22:08:32 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-11-11 22:08:32 +0300 |
commit | 1a42257fa15dba4224810ffa1775e2e553f137c3 (patch) | |
tree | 81f1f9879713683a9a4460afd228936fd2ec8141 | |
parent | 31d580416c3acd9b4985e6555c151ad1030e9945 (diff) |
add return type hintsfix/52/website-appstore
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | lib/Settings/Personal.php | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/lib/Settings/Personal.php b/lib/Settings/Personal.php index 196b834..9cb8016 100644 --- a/lib/Settings/Personal.php +++ b/lib/Settings/Personal.php @@ -28,31 +28,15 @@ use OCP\Settings\ISettings; class Personal 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('data_request', 'Settings/personal', [], ''); } - /** - * @return string the section ID, e.g. 'sharing' - * @since 9.1 - */ - public function getSection() { + public function getSection(): string { return 'personal-info'; } - /** - * @return int whether the form should be rather on the top or bottom of - * the admin section. The forms are arranged in ascending order of the - * priority values. It is required to return a value between 0 and 100. - * - * E.g.: 70 - * @since 9.1 - */ - public function getPriority() { + public function getPriority(): int { return 80; } } |