Skip to content

Commit 02f9e5a

Browse files
committed
style fixes
1 parent 9fc05fd commit 02f9e5a

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

src/Actions/TwoFactorRedirector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function redirect(Request $request): ?Response
3030
/**
3131
* Get the two-factor authentication enabled response.
3232
*
33-
* @param \App\Models\User $user
33+
* @param \App\Models\User $user
3434
*/
3535
protected function twoFactorChallengeResponse(Request $request, $user): Response
3636
{
@@ -44,8 +44,8 @@ protected function twoFactorChallengeResponse(Request $request, $user): Response
4444
TwoFactorAuthenticationChallenged::dispatch($user);
4545

4646
return $request->wantsJson()
47-
? response()->json(['two_factor' => true])
48-
: redirect()->route('two-factor-challenge.create');
47+
? response()->json(['two_factor' => true])
48+
: redirect()->route('two-factor-challenge.create');
4949
}
5050

5151
/**

tests/OrchestraTestCase.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
namespace Emargareten\TwoFactor\Tests;
44

55
use Emargareten\TwoFactor\ServiceProvider;
6-
use Emargareten\TwoFactor\TwoFactorAuthenticatable;
7-
use Illuminate\Foundation\Auth\User;
86
use Orchestra\Testbench\TestCase;
97

108
abstract class OrchestraTestCase extends TestCase

tests/TestUser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* @property string|null $two_factor_secret
1818
* @property array|null $two_factor_recovery_codes
1919
* @property \Illuminate\Support\Carbon|null $two_factor_confirmed_at
20+
*
2021
* @method static TestUser create(array $attributes = [])
2122
*/
2223
class TestUser extends User

tests/TwoFactorAuthenticationChallengeTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Emargareten\TwoFactor\Tests;
44

5-
use Emargareten\TwoFactor\TwoFactorAuthenticatable;
6-
use Illuminate\Foundation\Auth\User;
75
use PragmaRX\Google2FA\Google2FA;
86

97
class TwoFactorAuthenticationChallengeTest extends OrchestraTestCase

0 commit comments

Comments
 (0)