diff --git a/src/Actions/AttemptToAuthenticate.php b/src/Actions/AttemptToAuthenticate.php index b2648a5..6c734de 100644 --- a/src/Actions/AttemptToAuthenticate.php +++ b/src/Actions/AttemptToAuthenticate.php @@ -20,7 +20,8 @@ class AttemptToAuthenticate public function __construct( protected StatefulGuard $guard, protected LoginRateLimiter $limiter - ) { } + ) { + } /** * Handle the incoming request. diff --git a/src/Actions/EnsureLoginIsNotThrottled.php b/src/Actions/EnsureLoginIsNotThrottled.php index f273eb8..e40084d 100644 --- a/src/Actions/EnsureLoginIsNotThrottled.php +++ b/src/Actions/EnsureLoginIsNotThrottled.php @@ -15,7 +15,8 @@ class EnsureLoginIsNotThrottled */ public function __construct( protected LoginRateLimiter $limiter - ) { } + ) { + } /** * Handle the incoming request. diff --git a/src/Actions/LoginUserRetrieval.php b/src/Actions/LoginUserRetrieval.php index 2a6acc7..8f98cb1 100644 --- a/src/Actions/LoginUserRetrieval.php +++ b/src/Actions/LoginUserRetrieval.php @@ -18,7 +18,8 @@ class LoginUserRetrieval */ public function __construct( protected LoginRateLimiter $limiter - ) { } + ) { + } /** * Handle the incoming request. diff --git a/src/Actions/PrepareAuthenticatedSession.php b/src/Actions/PrepareAuthenticatedSession.php index c0cc8a7..f92e4ed 100644 --- a/src/Actions/PrepareAuthenticatedSession.php +++ b/src/Actions/PrepareAuthenticatedSession.php @@ -13,7 +13,8 @@ class PrepareAuthenticatedSession */ public function __construct( protected LoginRateLimiter $limiter - ) { } + ) { + } /** * Handle the incoming request. diff --git a/src/Events/WebauthnLogin.php b/src/Events/WebauthnLogin.php index 50fb89a..9076488 100644 --- a/src/Events/WebauthnLogin.php +++ b/src/Events/WebauthnLogin.php @@ -19,5 +19,6 @@ class WebauthnLogin public function __construct( public User $user, public bool $eloquent = false - ) { } + ) { + } } diff --git a/src/Events/WebauthnLoginData.php b/src/Events/WebauthnLoginData.php index c6aa701..94e79dc 100644 --- a/src/Events/WebauthnLoginData.php +++ b/src/Events/WebauthnLoginData.php @@ -20,5 +20,6 @@ class WebauthnLoginData public function __construct( public User $user, public PublicKeyCredentialRequestOptions $publicKey - ) { } + ) { + } } diff --git a/src/Events/WebauthnRegister.php b/src/Events/WebauthnRegister.php index d0cc369..6de9761 100644 --- a/src/Events/WebauthnRegister.php +++ b/src/Events/WebauthnRegister.php @@ -17,5 +17,6 @@ class WebauthnRegister */ public function __construct( public Model $webauthnKey - ) { } + ) { + } } diff --git a/src/Events/WebauthnRegisterData.php b/src/Events/WebauthnRegisterData.php index 20cf503..a7552ea 100644 --- a/src/Events/WebauthnRegisterData.php +++ b/src/Events/WebauthnRegisterData.php @@ -20,5 +20,6 @@ class WebauthnRegisterData public function __construct( public User $user, public PublicKeyCredentialCreationOptions $publicKey - ) { } + ) { + } } diff --git a/src/Events/WebauthnRegisterFailed.php b/src/Events/WebauthnRegisterFailed.php index 70bd67b..6ab5165 100644 --- a/src/Events/WebauthnRegisterFailed.php +++ b/src/Events/WebauthnRegisterFailed.php @@ -20,5 +20,6 @@ class WebauthnRegisterFailed public function __construct( public User $user, public ?Exception $exception = null - ) { } + ) { + } } diff --git a/src/Http/Middleware/WebauthnMiddleware.php b/src/Http/Middleware/WebauthnMiddleware.php index aac7e96..cb8d97d 100644 --- a/src/Http/Middleware/WebauthnMiddleware.php +++ b/src/Http/Middleware/WebauthnMiddleware.php @@ -15,7 +15,8 @@ class WebauthnMiddleware */ public function __construct( protected AuthFactory $auth - ) { } + ) { + } /** * Handle an incoming request. diff --git a/src/Http/Responses/LockoutResponse.php b/src/Http/Responses/LockoutResponse.php index a29db3f..643fb53 100644 --- a/src/Http/Responses/LockoutResponse.php +++ b/src/Http/Responses/LockoutResponse.php @@ -15,7 +15,8 @@ class LockoutResponse implements LockoutResponseContract */ public function __construct( protected LoginRateLimiter $limiter - ) { } + ) { + } /** * Create an HTTP response that represents the object. diff --git a/src/Models/Casts/TrustPath.php b/src/Models/Casts/TrustPath.php index d5c9fb8..0184174 100644 --- a/src/Models/Casts/TrustPath.php +++ b/src/Models/Casts/TrustPath.php @@ -4,8 +4,8 @@ use Illuminate\Contracts\Database\Eloquent\CastsAttributes; use Illuminate\Database\Eloquent\Model; -use Webauthn\TrustPath\TrustPathLoader; use Webauthn\TrustPath\TrustPath as TrustPathLib; +use Webauthn\TrustPath\TrustPathLoader; /** * @implements CastsAttributes diff --git a/src/Services/LoginRateLimiter.php b/src/Services/LoginRateLimiter.php index 84c8c65..17f1100 100644 --- a/src/Services/LoginRateLimiter.php +++ b/src/Services/LoginRateLimiter.php @@ -13,7 +13,8 @@ class LoginRateLimiter */ public function __construct( protected RateLimiter $limiter - ) { } + ) { + } /** * Get the number of attempts for the given key. diff --git a/src/Services/Webauthn/CredentialRepository.php b/src/Services/Webauthn/CredentialRepository.php index 12a8197..53aa026 100644 --- a/src/Services/Webauthn/CredentialRepository.php +++ b/src/Services/Webauthn/CredentialRepository.php @@ -3,9 +3,9 @@ namespace LaravelWebauthn\Services\Webauthn; use Illuminate\Contracts\Auth\Authenticatable as User; +use Illuminate\Support\Collection; use LaravelWebauthn\Facades\Webauthn; use Webauthn\PublicKeyCredentialDescriptor; -use Illuminate\Support\Collection; use Webauthn\PublicKeyCredentialSource; class CredentialRepository diff --git a/src/Services/Webauthn/CredentialValidator.php b/src/Services/Webauthn/CredentialValidator.php index eb9c4fe..4b89690 100644 --- a/src/Services/Webauthn/CredentialValidator.php +++ b/src/Services/Webauthn/CredentialValidator.php @@ -16,7 +16,8 @@ abstract class CredentialValidator public function __construct( protected Request $request, protected Cache $cache - ) { } + ) { + } /** * Returns the cache key to remember the challenge for the user.