@@ -33,7 +33,7 @@ class Passport
33
33
private array $ attributes = [];
34
34
35
35
/**
36
- * @param CredentialsInterface $credentials the credentials to check for this authentication, use
36
+ * @param CredentialsInterface $credentials The credentials to check for this authentication, use
37
37
* SelfValidatingPassport if no credentials should be checked
38
38
* @param BadgeInterface[] $badges
39
39
*/
@@ -48,7 +48,7 @@ public function __construct(UserBadge $userBadge, CredentialsInterface $credenti
48
48
49
49
public function getUser (): UserInterface
50
50
{
51
- if (null === $ this ->user ) {
51
+ if (! isset ( $ this ->user ) ) {
52
52
if (!$ this ->hasBadge (UserBadge::class)) {
53
53
throw new \LogicException ('Cannot get the Security user, no username or UserBadge configured for this passport. ' );
54
54
}
@@ -66,9 +66,9 @@ public function getUser(): UserInterface
66
66
* This method replaces the current badge if it is already set on this
67
67
* passport.
68
68
*
69
- * @param string|null $badgeFqcn A FQCN to which the badge should be mapped to.
70
- * This allows replacing a built-in badge by a custom one using
71
- *. e.g. addBadge(new MyCustomUserBadge(), UserBadge::class)
69
+ * @param string|null $badgeFqcn A FQCN to which the badge should be mapped to.
70
+ * This allows replacing a built-in badge by a custom one using
71
+ *. e.g. addBadge(new MyCustomUserBadge(), UserBadge::class)
72
72
*
73
73
* @return $this
74
74
*/
0 commit comments