diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-05-30 14:37:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 14:37:37 +0200 |
commit | 1164c762eb2c120ca0d2d8da83dfe9f925ed652f (patch) | |
tree | 5c5dfd39c7e750a45e4f963951c10f953837d7e8 /core/Controller/WebAuthnController.php | |
parent | e86bcc8953eb4cefbd069aac1ff9913669ebaf0f (diff) | |
parent | b70c6a128fe5d0053b7971881696eafce4cb7c26 (diff) | |
download | nextcloud-server-1164c762eb2c120ca0d2d8da83dfe9f925ed652f.tar.gz nextcloud-server-1164c762eb2c120ca0d2d8da83dfe9f925ed652f.zip |
Merge pull request #31948 from nextcloud/core-cleanup-74
Update core to PHP 7.4 standard
Diffstat (limited to 'core/Controller/WebAuthnController.php')
-rw-r--r-- | core/Controller/WebAuthnController.php | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/core/Controller/WebAuthnController.php b/core/Controller/WebAuthnController.php index 1aab505f16a..1eab5c79be6 100644 --- a/core/Controller/WebAuthnController.php +++ b/core/Controller/WebAuthnController.php @@ -32,29 +32,22 @@ use OC\Authentication\WebAuthn\Manager; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; use OCP\AppFramework\Http\JSONResponse; -use OCP\ILogger; use OCP\IRequest; use OCP\ISession; use OCP\Util; +use Psr\Log\LoggerInterface; use Webauthn\PublicKeyCredentialRequestOptions; class WebAuthnController extends Controller { private const WEBAUTHN_LOGIN = 'webauthn_login'; private const WEBAUTHN_LOGIN_UID = 'webauthn_login_uid'; - /** @var Manager */ - private $webAuthnManger; + private Manager $webAuthnManger; + private ISession $session; + private LoggerInterface $logger; + private WebAuthnChain $webAuthnChain; - /** @var ISession */ - private $session; - - /** @var ILogger */ - private $logger; - - /** @var WebAuthnChain */ - private $webAuthnChain; - - public function __construct($appName, IRequest $request, Manager $webAuthnManger, ISession $session, ILogger $logger, WebAuthnChain $webAuthnChain) { + public function __construct($appName, IRequest $request, Manager $webAuthnManger, ISession $session, LoggerInterface $logger, WebAuthnChain $webAuthnChain) { parent::__construct($appName, $request); $this->webAuthnManger = $webAuthnManger; |