File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
lib/private/Authentication/TwoFactorAuth Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,6 @@ public function __construct(ProviderLoader $providerLoader,
119119
120120 /**
121121 * Determine whether the user must provide a second factor challenge
122- *
123- * @param IUser $user
124- * @return boolean
125122 */
126123 public function isTwoFactorAuthenticated (IUser $ user ): bool {
127124 if (isset ($ this ->userIsTwoFactorAuthenticated [$ user ->getUID ()])) {
@@ -145,18 +142,13 @@ public function isTwoFactorAuthenticated(IUser $user): bool {
145142
146143 /**
147144 * Get a 2FA provider by its ID
148- *
149- * @param IUser $user
150- * @param string $challengeProviderId
151- * @return IProvider|null
152145 */
153- public function getProvider (IUser $ user , string $ challengeProviderId ) {
146+ public function getProvider (IUser $ user , string $ challengeProviderId ): ? IProvider {
154147 $ providers = $ this ->getProviderSet ($ user )->getProviders ();
155148 return $ providers [$ challengeProviderId ] ?? null ;
156149 }
157150
158151 /**
159- * @param IUser $user
160152 * @return IActivatableAtLogin[]
161153 * @throws Exception
162154 */
You can’t perform that action at this time.
0 commit comments