Skip to content

Commit

Permalink
Apply fixes from StyleCI (#75)
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
DarkGhostHunter authored Mar 12, 2024
1 parent 4d380b5 commit a37cab0
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Http/Middleware/ConfirmTwoFactorCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Closure;
use Illuminate\Http\Request;
use Laragear\TwoFactor\Contracts\TwoFactorAuthenticatable as TwoFactor;

use function config;
use function now;
use function response;
Expand Down
1 change: 1 addition & 0 deletions src/Models/Concerns/SerializesSharedSecret.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use BaconQrCode\Renderer\RendererStyle\RendererStyle;
use BaconQrCode\Writer;
use Illuminate\Support\Str;

use function array_values;
use function chunk_split;
use function config;
Expand Down
1 change: 1 addition & 0 deletions src/Models/TwoFactorAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Laragear\TwoFactor\Contracts\TwoFactorTotp;
use Laragear\TwoFactor\Migrations\TwoFactorAuthenticationMigration;
use ParagonIE\ConstantTime\Base32;

use function array_merge;
use function config;
use function json_encode;
Expand Down
1 change: 1 addition & 0 deletions src/TwoFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Illuminate\Http\Request;
use Laragear\TwoFactor\Contracts\TwoFactorAuthenticatable;
use Laragear\TwoFactor\Exceptions\InvalidCodeException;

use function app;
use function trans;
use function validator;
Expand Down
1 change: 1 addition & 0 deletions src/TwoFactorAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Illuminate\Http\Request;
use Illuminate\Support\Collection;
use InvalidArgumentException;

use function collect;
use function config;
use function cookie;
Expand Down
1 change: 1 addition & 0 deletions src/TwoFactorLoginHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Illuminate\Support\Facades\Crypt;
use InvalidArgumentException;
use Laragear\TwoFactor\Exceptions\InvalidCodeException;

use function array_merge;
use function redirect;
use function response;
Expand Down
1 change: 1 addition & 0 deletions tests/Eloquent/TwoFactorAuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Tests\Stubs\UserStub;
use Tests\Stubs\UserTwoFactorStub;
use Tests\TestCase;

use function rawurlencode;

class TwoFactorAuthenticationTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/Http/Middleware/ConfirmTwoFactorEnabledTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Tests\CreatesTwoFactorUser;
use Tests\Stubs\UserStub;
use Tests\TestCase;

use function now;
use function trans;

Expand Down
1 change: 1 addition & 0 deletions tests/Rules/TotpRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Tests\CreatesTwoFactorUser;
use Tests\Stubs\UserStub;
use Tests\TestCase;

use function validator;

class TotpRuleTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/TwoFactorLoginHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Mockery;
use Tests\Stubs\UserStub;
use Tests\Stubs\UserTwoFactorStub;

use function app;
use function config;
use function get_class;
Expand Down
1 change: 1 addition & 0 deletions tests/TwoFactorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Mockery;
use Tests\Stubs\UserStub;
use Tests\Stubs\UserTwoFactorStub;

use function now;

class TwoFactorTest extends TestCase
Expand Down

0 comments on commit a37cab0

Please sign in to comment.