Skip to content

Commit

Permalink
chore: linting + docblock updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gavynj authored Oct 18, 2024
1 parent fbc9369 commit be3d84c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/FormField/RegisteredMFAMethodListField.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ public function getSchemaDataDefaults()
/**
* Get the registered backup method (if any) from the currently logged in user.
*
* @param Member|null $member
* @return RegisteredMethod|null
*/
protected function getBackupMethod($member = null): ?RegisteredMethod
protected function getBackupMethod(Member $member = null): ?RegisteredMethod
{
$backupMethod = MethodRegistry::singleton()->getBackupMethod();
return RegisteredMethodManager::singleton()->getFromMember($member ?? Security::getCurrentUser(), $backupMethod);
return RegisteredMethodManager::singleton()->getFromMember(
$member ?? Security::getCurrentUser(),
$backupMethod
);
}
}

0 comments on commit be3d84c

Please sign in to comment.