refactor: auto refactor via rector

This commit is contained in:
idevakk
2025-09-29 01:08:34 +05:30
parent 744e0bb9bb
commit 21664b1a3e
26 changed files with 55 additions and 68 deletions

View File

@@ -4,7 +4,7 @@ use App\Models\User;
use Laravel\Fortify\Features;
use Livewire\Livewire;
beforeEach(function () {
beforeEach(function (): void {
if (! Features::canManageTwoFactorAuthentication()) {
$this->markTestSkipped('Two-factor authentication is not enabled.');
}
@@ -15,7 +15,7 @@ beforeEach(function () {
]);
});
test('two factor settings page can be rendered', function () {
test('two factor settings page can be rendered', function (): void {
$user = User::factory()->create();
$this->actingAs($user)
@@ -26,7 +26,7 @@ test('two factor settings page can be rendered', function () {
->assertSee('Disabled');
});
test('two factor settings page requires password confirmation when enabled', function () {
test('two factor settings page requires password confirmation when enabled', function (): void {
$user = User::factory()->create();
$response = $this->actingAs($user)
@@ -35,7 +35,7 @@ test('two factor settings page requires password confirmation when enabled', fun
$response->assertRedirect(route('password.confirm'));
});
test('two factor settings page returns forbidden response when two factor is disabled', function () {
test('two factor settings page returns forbidden response when two factor is disabled', function (): void {
config(['fortify.features' => []]);
$user = User::factory()->create();
@@ -47,7 +47,7 @@ test('two factor settings page returns forbidden response when two factor is dis
$response->assertForbidden();
});
test('two factor authentication disabled when confirmation abandoned between requests', function () {
test('two factor authentication disabled when confirmation abandoned between requests', function (): void {
$user = User::factory()->create();
$user->forceFill([