Skip to content

Commit

Permalink
Remove obsolete inline variables
Browse files Browse the repository at this point in the history
  • Loading branch information
parijke committed Dec 21, 2023
1 parent 6268d11 commit 900c56e
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,12 @@ public function list(): array
$options->numberOfTokensPerIdentity
);

/** @var RecoveryTokenService $recoveryTokenService */
$recoveryTokenService = $this->recoveryTokenService;
/** @var AuthorizationService $authorizationService */
$authorizationService = $this->authorizationService;
$recoveryTokensAllowed = $authorizationService->mayRegisterRecoveryTokens($identity);
$recoveryTokensAllowed = $this->authorizationService->mayRegisterRecoveryTokens($identity);
$selfAssertedTokenRegistration = $options->allowSelfAssertedTokens === true && $recoveryTokensAllowed;
$hasRemainingTokenTypes = $recoveryTokenService->getRemainingTokenTypes($identity) !== [];
$hasRemainingTokenTypes = $this->recoveryTokenService->getRemainingTokenTypes($identity) !== [];
$recoveryTokens = [];
if ($selfAssertedTokenRegistration && $recoveryTokensAllowed) {
$recoveryTokens = $recoveryTokenService->getRecoveryTokensForIdentity($identity);
$recoveryTokens = $this->recoveryTokenService->getRecoveryTokensForIdentity($identity);
}
$loaService = $this->secondFactorTypeService;

Expand Down

0 comments on commit 900c56e

Please sign in to comment.