Skip to content

Commit

Permalink
Applied Laravel Pint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
little-apps authored and github-actions[bot] committed Jun 2, 2024
1 parent f40a1db commit 302a267
Show file tree
Hide file tree
Showing 22 changed files with 4 additions and 70 deletions.
4 changes: 0 additions & 4 deletions src/Core/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@ class Handler

/**
* Application container
*
* @var Application
*/
protected readonly Application $app;

/**
* The JWK to use for building and validating JWTs
*
* @var JsonWebKey
*/
protected readonly JsonWebKey $jwk;

Expand Down
2 changes: 0 additions & 2 deletions src/Factories/DefaultCallbackBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ class DefaultCallbackBuilder
{
/**
* Application container
*
* @var Application
*/
protected readonly Application $app;

Expand Down
2 changes: 0 additions & 2 deletions src/Factories/OpenSSLBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class OpenSSLBuilder

/**
* Configuration options for OpenSSL.
*
* @var array
*/
protected readonly array $config;

Expand Down
4 changes: 0 additions & 4 deletions src/Guards/Adapters/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@ abstract class AbstractAdapter implements GuardAdapter
{
/**
* Application container
*
* @var Container
*/
protected readonly Container $container;

/**
* The options to use for the adapter.
*
* @var array
*/
protected readonly array $config;

Expand Down
2 changes: 0 additions & 2 deletions src/Guards/Adapters/FingerprintAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class FingerprintAdapter extends AbstractAdapter

/**
* Base adapter to add fingerprint for.
*
* @var AbstractAdapter
*/
protected readonly AbstractAdapter $baseAdapter;

Expand Down
4 changes: 0 additions & 4 deletions src/Guards/Guard.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class Guard implements GuardContract

/**
* Application container
*
* @var Container
*/
protected readonly Container $container;

Expand All @@ -41,8 +39,6 @@ class Guard implements GuardContract

/**
* The options to use for the guard
*
* @var array
*/
protected readonly array $config;

Expand Down
1 change: 1 addition & 0 deletions src/JWK/JsonWebKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/**
* Represents a JSON Web Key
*
* @immutable
*/
final class JsonWebKey extends JWK
Expand Down
4 changes: 0 additions & 4 deletions src/JWT/JsonWebToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@ class JsonWebToken
{
/**
* Header claim manager.
*
* @var ClaimManager
*/
protected readonly ClaimManager $headers;

/**
* Payload claim manager.
*
* @var ClaimManager
*/
protected readonly ClaimManager $payload;

Expand Down
2 changes: 0 additions & 2 deletions src/JWT/MutatedJsonWebToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class MutatedJsonWebToken extends JsonWebToken
{
/**
* Original JWT
*
* @var JsonWebToken
*/
protected readonly JsonWebToken $original;

Expand Down
2 changes: 0 additions & 2 deletions src/JWT/SignedJsonWebToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ class SignedJsonWebToken extends JsonWebToken
{
/**
* Signature
*
* @var string
*/
protected readonly string $signature;

Expand Down
2 changes: 1 addition & 1 deletion src/Laravel/Rules/ValidToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ValidToken implements ImplicitRule
*/
public function __construct(?callable $callback = null)
{
$this->callback = !is_null($callback) ? Closure::fromCallable($callback) : null;
$this->callback = ! is_null($callback) ? Closure::fromCallable($callback) : null;
}

/**
Expand Down
9 changes: 2 additions & 7 deletions src/LittleJWT.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,11 @@ class LittleJWT

/**
* Application container
*
* @var Application
*/
protected readonly Application $app;

/**
* The JWK to use for building and validating JWTs
*
* @var JsonWebKey
*/
protected readonly JsonWebKey $jwk;

Expand Down Expand Up @@ -132,10 +128,9 @@ public function alwaysMutate(bool $enabled)

/**
* Gets the JWK used for signing and validating.
*
* @return JsonWebKey
*/
public function getJwk(): JsonWebKey {
public function getJwk(): JsonWebKey
{
return $this->jwk;
}

Expand Down
4 changes: 0 additions & 4 deletions src/Mutate/Mutate.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@ class Mutate

/**
* Builder for JWTs.
*
* @var JWTBuilder
*/
protected readonly JWTBuilder $builder;

/**
* Mutator Manager
*
* @var MutatorManager
*/
protected readonly MutatorManager $mutatorManager;

Expand Down
2 changes: 0 additions & 2 deletions src/Mutate/MutatorManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ class MutatorManager
{
/**
* Mutator Resolver
*
* @var MutatorResolver
*/
protected readonly MutatorResolver $resolver;

Expand Down
2 changes: 0 additions & 2 deletions src/Mutate/MutatorResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class MutatorResolver

/**
* Application container
*
* @var Application
*/
protected readonly Application $app;

Expand Down
6 changes: 0 additions & 6 deletions src/Mutate/Mutators.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,16 @@ class Mutators

/**
* Mutators that will be applied to either header or payload claims.
*
* @var \Illuminate\Support\Collection
*/
protected readonly Collection $global;

/**
* Mutators that will be applied to header claims.
*
* @var \Illuminate\Support\Collection
*/
protected readonly Collection $headers;

/**
* Mutators that will be applied to payload claims.
*
* @var \Illuminate\Support\Collection
*/
protected readonly Collection $payload;

Expand Down
6 changes: 0 additions & 6 deletions src/Validation/Valid.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,16 @@ class Valid

/**
* Application container
*
* @var Application
*/
protected readonly Application $app;

/**
* JWT to validate
*
* @var JsonWebToken
*/
protected readonly JsonWebToken $jwt;

/**
* JSON Web Key to verify signature with
*
* @var JsonWebKey
*/
protected readonly JsonWebKey $jwk;

Expand Down
2 changes: 0 additions & 2 deletions src/Validation/Validatables/DefaultValidatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class DefaultValidatable
{
/**
* Default validatable configuration options.
*
* @var array
*/
protected readonly array $config;

Expand Down
2 changes: 0 additions & 2 deletions src/Validation/Validatables/FingerprintValidatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ class FingerprintValidatable
{
/**
* Expected fingerprint hash.
*
* @var string
*/
protected readonly string $fingerprintHash;

Expand Down
2 changes: 0 additions & 2 deletions src/Validation/Validatables/GuardValidatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class GuardValidatable

/**
* Configuration options.
*
* @var array
*/
protected readonly array $config;

Expand Down
4 changes: 0 additions & 4 deletions src/Validation/ValidatedJsonWebToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@ class ValidatedJsonWebToken

/**
* JWT that was validated.
*
* @var JsonWebToken
*/
protected readonly JsonWebToken $jwt;

/**
* The result of the validation.
*
* @var bool
*/
protected readonly bool $result;

Expand Down
6 changes: 0 additions & 6 deletions src/Validation/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,16 @@ class Validator implements BuildsValidatorRules

/**
* Rules to run before any other rules.
*
* @var \Illuminate\Support\Collection
*/
protected readonly Collection $rulesBefore;

/**
* Rules to run through JWT
*
* @var \Illuminate\Support\Collection
*/
protected readonly Collection $rules;

/**
* Callbacks to call after rules are checked.
*
* @var \Illuminate\Support\Collection
*/
protected readonly Collection $after;

Expand Down

0 comments on commit 302a267

Please sign in to comment.