Skip to content

Commit

Permalink
Fixes coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea authored and github-actions[bot] committed Sep 16, 2024
1 parent 1536fe0 commit 5bb8270
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class GenerateQrCodeAndSecretKey
public function __invoke($user): array
{

$google2fa = new Google2FA();
$google2fa = new Google2FA;
$secret_key = $google2fa->generateSecretKey();

$this->companyName = 'Auth';
Expand All @@ -38,7 +38,7 @@ public function __invoke($user): array
$writer = new Writer(
new ImageRenderer(
new RendererStyle(800),
new ImagickImageBackEnd()
new ImagickImageBackEnd
)
);

Expand Down
2 changes: 1 addition & 1 deletion src/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function register()

// Bind a singleton for the Google2FA service
$this->app->singleton(Google2FA::class, function ($app) {
return new Google2FA();
return new Google2FA;
});

// Register the DuskServiceProvider
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HasConfigs.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private function arrayToObject($array)
return $array;
}

$object = new \stdClass();
$object = new \stdClass;
foreach ($array as $key => $value) {
$object->$key = $this->arrayToObject($value);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Browser/ConfirmPasswordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@
->clickAndWaitForReload('@submit-button')
->assertSee('Test Confirmed');
});
});
});
2 changes: 1 addition & 1 deletion tests/Browser/ForgotPasswordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@
->waitFor('@auth-login')
->assertPathIs('/auth/login');
});
});
});
2 changes: 1 addition & 1 deletion tests/Browser/Pages/ConfirmPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function url(): string
{
return '/auth/password/confirm';
}
}
}
2 changes: 1 addition & 1 deletion tests/Browser/Pages/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ public function formLoginAsJohnDoe(Browser $browser)

return $this;
}
}
}
2 changes: 1 addition & 1 deletion tests/Browser/Pages/PasswordResetRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function url(): string
{
return '/auth/password/reset';
}
}
}
2 changes: 1 addition & 1 deletion tests/Browser/Pages/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ public function assertUserReceivedEmail()
return $mail->hasTo($user->email);
});
}
}
}
2 changes: 1 addition & 1 deletion tests/Browser/Pages/TwoFactorAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function url(): string
{
return '/user/two-factor-authentication';
}
}
}
2 changes: 1 addition & 1 deletion tests/Browser/Pages/TwoFactorChallenge.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function url(): string
{
return '/auth/two-factor-challenge';
}
}
}
2 changes: 1 addition & 1 deletion tests/Browser/Pages/VerifyEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function url(): string
{
return '/auth/verify';
}
}
}
2 changes: 1 addition & 1 deletion tests/Browser/RegisterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@
});
});

// Add more tests to test when the Name field is shown on the register page, or if the user keeps the password on a separate screen
// Add more tests to test when the Name field is shown on the register page, or if the user keeps the password on a separate screen
2 changes: 1 addition & 1 deletion tests/Browser/Traits.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ public function disableEmailVerification()
{
Config::set('devdojo.auth.settings.registration_require_email_verification', false);
}
}
}
2 changes: 1 addition & 1 deletion tests/Browser/TwoFactorAuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
->assertSee('Finish enabling two factor authentication');
});
$this->resetConfig();
});
});
2 changes: 1 addition & 1 deletion tests/Browser/TwoFactorChallengeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
->assertPathIs('/auth/two-factor-challenge');
});
$this->resetConfig();
});
});
2 changes: 1 addition & 1 deletion tests/Browser/VerifyEmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@
});
$this->resetConfig();

});
});
2 changes: 1 addition & 1 deletion tests/Datasets/Urls.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
'/auth/verify',
'/auth/password/reset',
'/auth/password/SomeReallyLongtoken',
]);
]);
1 change: 0 additions & 1 deletion tests/DuskTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Illuminate\Support\Collection;
use Laravel\Dusk\TestCase as BaseTestCase;
use PHPUnit\Framework\Attributes\BeforeClass;

Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ function createUser($data)
function withANewUser()
{
return test()->actingAs(User::factory()->create());
}
}

0 comments on commit 5bb8270

Please sign in to comment.