diff options
Diffstat (limited to 'lib/Settings/Admin.php')
-rw-r--r-- | lib/Settings/Admin.php | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index 3ab45dc..23c9b47 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -1,4 +1,7 @@ <?php +declare(strict_types=1); + + /** * FullTextSearch - Full text search framework for Nextcloud * @@ -24,8 +27,10 @@ * */ + namespace OCA\FullTextSearch\Settings; + use Exception; use OCA\FullTextSearch\AppInfo\Application; use OCA\FullTextSearch\Service\ConfigService; @@ -35,6 +40,12 @@ use OCP\IL10N; use OCP\IURLGenerator; use OCP\Settings\ISettings; + +/** + * Class Admin + * + * @package OCA\FullTextSearch\Settings + */ class Admin implements ISettings { /** @var IL10N */ @@ -57,7 +68,8 @@ class Admin implements ISettings { * @param MiscService $miscService */ public function __construct( - IL10N $l10n, IURLGenerator $urlGenerator, ConfigService $configService, MiscService $miscService + IL10N $l10n, IURLGenerator $urlGenerator, ConfigService $configService, + MiscService $miscService ) { $this->l10n = $l10n; $this->urlGenerator = $urlGenerator; @@ -70,7 +82,7 @@ class Admin implements ISettings { * @return TemplateResponse * @throws Exception */ - public function getForm() { + public function getForm(): TemplateResponse { return new TemplateResponse(Application::APP_NAME, 'settings.admin', []); } @@ -78,7 +90,7 @@ class Admin implements ISettings { /** * @return string the section ID, e.g. 'sharing' */ - public function getSection() { + public function getSection(): string { return Application::APP_NAME; } @@ -90,7 +102,7 @@ class Admin implements ISettings { * * keep the server setting at the top, right after "server settings" */ - public function getPriority() { + public function getPriority(): int { return 0; } |