Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
emargareten committed Mar 1, 2023
1 parent 9fc05fd commit 02f9e5a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/Actions/TwoFactorRedirector.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function redirect(Request $request): ?Response
/**
* Get the two-factor authentication enabled response.
*
* @param \App\Models\User $user
* @param \App\Models\User $user
*/
protected function twoFactorChallengeResponse(Request $request, $user): Response
{
Expand All @@ -44,8 +44,8 @@ protected function twoFactorChallengeResponse(Request $request, $user): Response
TwoFactorAuthenticationChallenged::dispatch($user);

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

/**
Expand Down
2 changes: 0 additions & 2 deletions tests/OrchestraTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace Emargareten\TwoFactor\Tests;

use Emargareten\TwoFactor\ServiceProvider;
use Emargareten\TwoFactor\TwoFactorAuthenticatable;
use Illuminate\Foundation\Auth\User;
use Orchestra\Testbench\TestCase;

abstract class OrchestraTestCase extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/TestUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* @property string|null $two_factor_secret
* @property array|null $two_factor_recovery_codes
* @property \Illuminate\Support\Carbon|null $two_factor_confirmed_at
*
* @method static TestUser create(array $attributes = [])
*/
class TestUser extends User
Expand Down
2 changes: 0 additions & 2 deletions tests/TwoFactorAuthenticationChallengeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Emargareten\TwoFactor\Tests;

use Emargareten\TwoFactor\TwoFactorAuthenticatable;
use Illuminate\Foundation\Auth\User;
use PragmaRX\Google2FA\Google2FA;

class TwoFactorAuthenticationChallengeTest extends OrchestraTestCase
Expand Down

0 comments on commit 02f9e5a

Please sign in to comment.