diff --git a/src/Http/Middleware/ConfirmTwoFactorCode.php b/src/Http/Middleware/ConfirmTwoFactorCode.php index 284c7c7..7ef364a 100644 --- a/src/Http/Middleware/ConfirmTwoFactorCode.php +++ b/src/Http/Middleware/ConfirmTwoFactorCode.php @@ -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; diff --git a/src/Models/Concerns/SerializesSharedSecret.php b/src/Models/Concerns/SerializesSharedSecret.php index 9595694..2ca32bf 100644 --- a/src/Models/Concerns/SerializesSharedSecret.php +++ b/src/Models/Concerns/SerializesSharedSecret.php @@ -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; diff --git a/src/Models/TwoFactorAuthentication.php b/src/Models/TwoFactorAuthentication.php index d5eb15e..3e96e9e 100644 --- a/src/Models/TwoFactorAuthentication.php +++ b/src/Models/TwoFactorAuthentication.php @@ -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; diff --git a/src/TwoFactor.php b/src/TwoFactor.php index d15f308..9646c42 100644 --- a/src/TwoFactor.php +++ b/src/TwoFactor.php @@ -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; diff --git a/src/TwoFactorAuthentication.php b/src/TwoFactorAuthentication.php index 84c9e75..6458247 100644 --- a/src/TwoFactorAuthentication.php +++ b/src/TwoFactorAuthentication.php @@ -7,6 +7,7 @@ use Illuminate\Http\Request; use Illuminate\Support\Collection; use InvalidArgumentException; + use function collect; use function config; use function cookie; diff --git a/src/TwoFactorLoginHelper.php b/src/TwoFactorLoginHelper.php index fe368f6..f741c8a 100644 --- a/src/TwoFactorLoginHelper.php +++ b/src/TwoFactorLoginHelper.php @@ -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; diff --git a/tests/Eloquent/TwoFactorAuthenticationTest.php b/tests/Eloquent/TwoFactorAuthenticationTest.php index 5598fbd..ee5786b 100644 --- a/tests/Eloquent/TwoFactorAuthenticationTest.php +++ b/tests/Eloquent/TwoFactorAuthenticationTest.php @@ -10,6 +10,7 @@ use Tests\Stubs\UserStub; use Tests\Stubs\UserTwoFactorStub; use Tests\TestCase; + use function rawurlencode; class TwoFactorAuthenticationTest extends TestCase diff --git a/tests/Http/Middleware/ConfirmTwoFactorEnabledTest.php b/tests/Http/Middleware/ConfirmTwoFactorEnabledTest.php index 8413b4f..4a2de3f 100644 --- a/tests/Http/Middleware/ConfirmTwoFactorEnabledTest.php +++ b/tests/Http/Middleware/ConfirmTwoFactorEnabledTest.php @@ -7,6 +7,7 @@ use Tests\CreatesTwoFactorUser; use Tests\Stubs\UserStub; use Tests\TestCase; + use function now; use function trans; diff --git a/tests/Rules/TotpRuleTest.php b/tests/Rules/TotpRuleTest.php index 353e991..6c49913 100644 --- a/tests/Rules/TotpRuleTest.php +++ b/tests/Rules/TotpRuleTest.php @@ -6,6 +6,7 @@ use Tests\CreatesTwoFactorUser; use Tests\Stubs\UserStub; use Tests\TestCase; + use function validator; class TotpRuleTest extends TestCase diff --git a/tests/TwoFactorLoginHelperTest.php b/tests/TwoFactorLoginHelperTest.php index d057a59..5f63974 100644 --- a/tests/TwoFactorLoginHelperTest.php +++ b/tests/TwoFactorLoginHelperTest.php @@ -18,6 +18,7 @@ use Mockery; use Tests\Stubs\UserStub; use Tests\Stubs\UserTwoFactorStub; + use function app; use function config; use function get_class; diff --git a/tests/TwoFactorTest.php b/tests/TwoFactorTest.php index 8ccdf7c..c1e5cfa 100644 --- a/tests/TwoFactorTest.php +++ b/tests/TwoFactorTest.php @@ -12,6 +12,7 @@ use Mockery; use Tests\Stubs\UserStub; use Tests\Stubs\UserTwoFactorStub; + use function now; class TwoFactorTest extends TestCase