Apply suggestions from code review
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
parent
72e3106e0d
commit
0c55a60897
1 changed files with 2 additions and 3 deletions
|
@ -140,7 +140,6 @@ class Authentik extends OAuth2
|
||||||
/**
|
/**
|
||||||
* Check if the User email is verified
|
* Check if the User email is verified
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* @param string $accessToken
|
* @param string $accessToken
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
|
@ -197,7 +196,7 @@ class Authentik extends OAuth2
|
||||||
{
|
{
|
||||||
$secret = $this->getAppSecret();
|
$secret = $this->getAppSecret();
|
||||||
|
|
||||||
return (isset($secret['clientSecret'])) ? $secret['clientSecret'] : '';
|
return $secret['clientSecret'] ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -208,7 +207,7 @@ class Authentik extends OAuth2
|
||||||
protected function getAuthentikDomain(): string
|
protected function getAuthentikDomain(): string
|
||||||
{
|
{
|
||||||
$secret = $this->getAppSecret();
|
$secret = $this->getAppSecret();
|
||||||
return (isset($secret['authentikDomain'])) ? $secret['authentikDomain'] : '';
|
return $secret['authentikDomain'] ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue