Skip to content

Commit

Permalink
Small codestyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvandevijver committed Aug 13, 2024
1 parent ee5024b commit a832f41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/Model/OidcTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use Drenso\OidcBundle\Exception\OidcException;
use stdClass;

/**
* Contains the access and id tokens retrieved from OpenID authentication.
*/
/** Contains the access and id tokens retrieved from the identity provider. */
class OidcTokens extends UnvalidatedOidcTokens
{
/** @throws OidcException */
Expand Down
8 changes: 2 additions & 6 deletions src/Model/UnvalidatedOidcTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@

use DateTimeImmutable;
use Drenso\OidcBundle\Enum\OidcTokenType;
use Drenso\OidcBundle\Exception\OidcException;
use stdClass;

/**
* Contains the access and id tokens retrieved from OpenID authentication.
*/
/** Contains the unvalidated access and id tokens retrieved from the identity provider. */
class UnvalidatedOidcTokens
{
protected readonly ?string $accessToken;
Expand All @@ -19,8 +16,7 @@ class UnvalidatedOidcTokens
/** @var string[]|null */
private ?array $scope = null;

/** @throws OidcException */
public function __construct(UnvalidatedOidcTokens|stdClass $tokens)
public function __construct(self|stdClass $tokens)
{
if ($tokens instanceof self) {
$this->accessToken = $tokens->accessToken;
Expand Down

0 comments on commit a832f41

Please sign in to comment.