Skip to content

Commit

Permalink
Style CI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
doekenorg committed Apr 29, 2021
1 parent ed96922 commit 7c84f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Guard.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ protected function hasValidProvider($tokenable)
*/
protected function isValidAccessToken($accessToken): bool
{
if (!$accessToken) {
if (! $accessToken) {
return false;
}

$is_valid =
(!$this->expiration || $accessToken->created_at->gt(now()->subMinutes($this->expiration)))
(! $this->expiration || $accessToken->created_at->gt(now()->subMinutes($this->expiration)))
&& $this->hasValidProvider($accessToken->tokenable);

if (is_callable(Sanctum::$validateCallback)) {
Expand Down

0 comments on commit 7c84f1b

Please sign in to comment.