Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 3249bd3

Browse files
committed
Add missing import
1 parent 10ad276 commit 3249bd3

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/Providers/BaseProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
namespace MichaelDzjap\TwoFactorAuth\Providers;
44

5+
use App\User;
6+
57
abstract class BaseProvider
68
{
79
/**
810
* Check if two-factor authentication is enabled for a user.
911
*
10-
* @param User $user
12+
* @param \App\User $user
1113
* @return bool
1214
*/
1315
public function enabled(User $user)

src/Providers/MessageBirdVerify.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class MessageBirdVerify extends BaseProvider implements TwoFactorProvider, SMSTo
2525
/**
2626
* MessageBirdVerify constructor.
2727
*
28-
* @param Client $client
28+
* @param \MessageBird\Client $client
2929
* @return void
3030
*/
3131
public function __construct(Client $client)
@@ -36,7 +36,7 @@ public function __construct(Client $client)
3636
/**
3737
* Register a user with this provider.
3838
*
39-
* @param User $user
39+
* @param \App\User $user
4040
* @return void
4141
*/
4242
public function register(User $user)
@@ -47,7 +47,7 @@ public function register(User $user)
4747
/**
4848
* Unregister a user with this provider.
4949
*
50-
* @param User $user
50+
* @param \App\User $user
5151
* @return bool
5252
*/
5353
public function unregister(User $user)
@@ -61,8 +61,8 @@ public function unregister(User $user)
6161
/**
6262
* Determine if the token is valid.
6363
*
64-
* @param User $user
65-
* @param string $token
64+
* @param \App\User $user
65+
* @param string $token
6666
* @return bool
6767
*/
6868
public function verify(User $user, string $token)
@@ -104,11 +104,11 @@ public function verify(User $user, string $token)
104104
/**
105105
* Send a user a two-factor authentication token via SMS.
106106
*
107-
* @param User $user
107+
* @param \App\User $user
108108
* @return void
109-
* @throws Exception $exception
109+
* @throws Exception $exception
110110
*/
111-
public function sendSMSToken(User $user)
111+
public function sendSMSToken(User $user) : void
112112
{
113113
if (!$user->mobile) {
114114
throw new Exception("No mobile phone number found for user {$user->id}.");

0 commit comments

Comments
 (0)