diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-13 21:29:45 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-19 11:42:41 +0200 |
commit | 27259ea2a21cf0227be12bc9bfc2c997bc6ee44f (patch) | |
tree | a0336ade58d01fca822d1fae56a30d3b80289378 /apps/oauth2/lib | |
parent | 1ccb36a0f1169a416669498d23d8dab1305f5f45 (diff) | |
download | nextcloud-server-27259ea2a21cf0227be12bc9bfc2c997bc6ee44f.tar.gz nextcloud-server-27259ea2a21cf0227be12bc9bfc2c997bc6ee44f.zip |
Fix AdminTests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/oauth2/lib')
-rw-r--r-- | apps/oauth2/lib/Settings/Admin.php | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/apps/oauth2/lib/Settings/Admin.php b/apps/oauth2/lib/Settings/Admin.php index 7460f86ca53..0553f35f1ce 100644 --- a/apps/oauth2/lib/Settings/Admin.php +++ b/apps/oauth2/lib/Settings/Admin.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2017 Lukas Reschke <lukas@statuscode.ch> * @@ -21,25 +22,12 @@ namespace OCA\OAuth2\Settings; -use OCA\OAuth2\Db\ClientMapper; use OCP\AppFramework\Http\TemplateResponse; use OCP\Settings\ISettings; class Admin implements ISettings { - /** @var ClientMapper */ - private $clientMapper; - /** - * @param ClientMapper $clientMapper - */ - public function __construct(ClientMapper $clientMapper) { - $this->clientMapper = $clientMapper; - } - - /** - * @return TemplateResponse - */ - public function getForm() { + public function getForm(): TemplateResponse { return new TemplateResponse( 'oauth2', 'admin', @@ -48,17 +36,11 @@ class Admin implements ISettings { ); } - /** - * {@inheritdoc} - */ - public function getSection() { + public function getSection(): string { return 'security'; } - /** - * {@inheritdoc} - */ - public function getPriority() { + public function getPriority(): int { return 0; } } |