From ce9070453ef75e52fa54973bce37765667333c53 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Thu, 25 Apr 2024 12:22:53 +0200 Subject: [PATCH] Fix code-style --- .../lib/system/user/authentication/oauth/Failure.class.php | 5 +++-- .../lib/system/user/authentication/oauth/Success.class.php | 6 ++++-- .../user/authentication/oauth/twitter/Success.class.php | 6 ++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/wcfsetup/install/files/lib/system/user/authentication/oauth/Failure.class.php b/wcfsetup/install/files/lib/system/user/authentication/oauth/Failure.class.php index 0aa7686718..9ddd03bef5 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/oauth/Failure.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/oauth/Failure.class.php @@ -12,7 +12,8 @@ namespace wcf\system\user\authentication\oauth; */ class Failure { - public function __construct(public readonly string $error) - { + public function __construct( + public readonly string $error + ) { } } diff --git a/wcfsetup/install/files/lib/system/user/authentication/oauth/Success.class.php b/wcfsetup/install/files/lib/system/user/authentication/oauth/Success.class.php index bd226c6bf2..e8fcdae22e 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/oauth/Success.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/oauth/Success.class.php @@ -12,7 +12,9 @@ namespace wcf\system\user\authentication\oauth; */ class Success { - public function __construct(public readonly string $code, public readonly string $state = '') - { + public function __construct( + public readonly string $code, + public readonly string $state = '' + ) { } } diff --git a/wcfsetup/install/files/lib/system/user/authentication/oauth/twitter/Success.class.php b/wcfsetup/install/files/lib/system/user/authentication/oauth/twitter/Success.class.php index bde4dc2642..8c3ed02d14 100644 --- a/wcfsetup/install/files/lib/system/user/authentication/oauth/twitter/Success.class.php +++ b/wcfsetup/install/files/lib/system/user/authentication/oauth/twitter/Success.class.php @@ -14,10 +14,8 @@ use wcf\system\user\authentication\oauth\Success as BaseSuccess; */ final class Success extends BaseSuccess { - public function __construct( - string $oauth_token, - string $oauth_verifier, - ) { + public function __construct(string $oauth_token, string $oauth_verifier) + { parent::__construct($oauth_token, $oauth_verifier); } } -- 2.20.1