Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Sep 4, 2023
1 parent 89d01e4 commit cfc7e20
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 15 deletions.
3 changes: 2 additions & 1 deletion src/Actions/AttemptToAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class AttemptToAuthenticate
public function __construct(
protected StatefulGuard $guard,
protected LoginRateLimiter $limiter
) { }
) {
}

/**
* Handle the incoming request.
Expand Down
3 changes: 2 additions & 1 deletion src/Actions/EnsureLoginIsNotThrottled.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class EnsureLoginIsNotThrottled
*/
public function __construct(
protected LoginRateLimiter $limiter
) { }
) {
}

/**
* Handle the incoming request.
Expand Down
3 changes: 2 additions & 1 deletion src/Actions/LoginUserRetrieval.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class LoginUserRetrieval
*/
public function __construct(
protected LoginRateLimiter $limiter
) { }
) {
}

/**
* Handle the incoming request.
Expand Down
3 changes: 2 additions & 1 deletion src/Actions/PrepareAuthenticatedSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class PrepareAuthenticatedSession
*/
public function __construct(
protected LoginRateLimiter $limiter
) { }
) {
}

/**
* Handle the incoming request.
Expand Down
3 changes: 2 additions & 1 deletion src/Events/WebauthnLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ class WebauthnLogin
public function __construct(
public User $user,
public bool $eloquent = false
) { }
) {
}
}
3 changes: 2 additions & 1 deletion src/Events/WebauthnLoginData.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ class WebauthnLoginData
public function __construct(
public User $user,
public PublicKeyCredentialRequestOptions $publicKey
) { }
) {
}
}
3 changes: 2 additions & 1 deletion src/Events/WebauthnRegister.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ class WebauthnRegister
*/
public function __construct(
public Model $webauthnKey
) { }
) {
}
}
3 changes: 2 additions & 1 deletion src/Events/WebauthnRegisterData.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ class WebauthnRegisterData
public function __construct(
public User $user,
public PublicKeyCredentialCreationOptions $publicKey
) { }
) {
}
}
3 changes: 2 additions & 1 deletion src/Events/WebauthnRegisterFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ class WebauthnRegisterFailed
public function __construct(
public User $user,
public ?Exception $exception = null
) { }
) {
}
}
3 changes: 2 additions & 1 deletion src/Http/Middleware/WebauthnMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class WebauthnMiddleware
*/
public function __construct(
protected AuthFactory $auth
) { }
) {
}

/**
* Handle an incoming request.
Expand Down
3 changes: 2 additions & 1 deletion src/Http/Responses/LockoutResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class LockoutResponse implements LockoutResponseContract
*/
public function __construct(
protected LoginRateLimiter $limiter
) { }
) {
}

/**
* Create an HTTP response that represents the object.
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Casts/TrustPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<TrustPathLib,string>
Expand Down
3 changes: 2 additions & 1 deletion src/Services/LoginRateLimiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class LoginRateLimiter
*/
public function __construct(
protected RateLimiter $limiter
) { }
) {
}

/**
* Get the number of attempts for the given key.
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Webauthn/CredentialRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/Services/Webauthn/CredentialValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cfc7e20

Please sign in to comment.