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 Aug 7, 2024
1 parent 2afd8ab commit 736e112
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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

0 comments on commit 736e112

Please sign in to comment.