33namespace MichaelDzjap \TwoFactorAuth \Providers ;
44
55use Exception ;
6- use App \User ;
76use MessageBird \Client ;
87use MessageBird \Exceptions \RequestException ;
98use MessageBird \Objects \Verify ;
@@ -36,21 +35,21 @@ public function __construct(Client $client)
3635 /**
3736 * Register a user with this provider.
3837 *
39- * @param \App\User $user
38+ * @param mixed $user
4039 * @return void
4140 */
42- public function register (User $ user ) : void
41+ public function register ($ user ) : void
4342 {
4443 //
4544 }
4645
4746 /**
4847 * Unregister a user with this provider.
4948 *
50- * @param \App\User $user
49+ * @param mixed $user
5150 * @return bool
5251 */
53- public function unregister (User $ user )
52+ public function unregister ($ user )
5453 {
5554 $ result = $ this ->client ->verify ->delete ($ user ->getTwoFactorAuthId ());
5655 $ user ->setTwoFactorAuthId (null );
@@ -61,11 +60,11 @@ public function unregister(User $user)
6160 /**
6261 * Determine if the token is valid.
6362 *
64- * @param \App\User $user
63+ * @param mixed $user
6564 * @param string $token
6665 * @return bool
6766 */
68- public function verify (User $ user , string $ token )
67+ public function verify ($ user , string $ token )
6968 {
7069 // Parse potential MessageBird exceptions. Unfortunately a rather generic
7170 // RequestException is thrown both in the case of an expired token as well as
@@ -104,11 +103,11 @@ public function verify(User $user, string $token)
104103 /**
105104 * Send a user a two-factor authentication token via SMS.
106105 *
107- * @param \App\User $user
106+ * @param mixed $user
108107 * @return void
109108 * @throws Exception $exception
110109 */
111- public function sendSMSToken (User $ user ) : void
110+ public function sendSMSToken ($ user ) : void
112111 {
113112 if (!$ user ->getMobile ()) {
114113 throw new Exception ("No mobile phone number found for user {$ user ->id }. " );
0 commit comments