From 736e112d46ae44ece7f7303fbc4857126961ba0f Mon Sep 17 00:00:00 2001 From: tnylea Date: Wed, 7 Aug 2024 22:03:00 +0000 Subject: [PATCH 1/2] Fixes coding style --- src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php | 4 ++-- src/AuthServiceProvider.php | 2 +- src/Traits/HasConfigs.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php b/src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php index a4860df..af3227c 100644 --- a/src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php +++ b/src/Actions/TwoFactorAuth/GenerateQrCodeAndSecretKey.php @@ -21,7 +21,7 @@ class GenerateQrCodeAndSecretKey public function __invoke($user): array { - $google2fa = new Google2FA(); + $google2fa = new Google2FA; $secret_key = $google2fa->generateSecretKey(); $this->companyName = 'Auth'; @@ -38,7 +38,7 @@ public function __invoke($user): array $writer = new Writer( new ImageRenderer( new RendererStyle(800), - new ImagickImageBackEnd() + new ImagickImageBackEnd ) ); diff --git a/src/AuthServiceProvider.php b/src/AuthServiceProvider.php index 4e0e185..081c5ed 100644 --- a/src/AuthServiceProvider.php +++ b/src/AuthServiceProvider.php @@ -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 diff --git a/src/Traits/HasConfigs.php b/src/Traits/HasConfigs.php index 38f5bfb..6220b2b 100644 --- a/src/Traits/HasConfigs.php +++ b/src/Traits/HasConfigs.php @@ -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); } From 38af30c8ca80c241c96be1b9a14a8685e588c475 Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Sun, 15 Sep 2024 11:20:38 -0400 Subject: [PATCH 2/2] Update tests.yml Updating Upload artifacts --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f7b9ad0..ed63dbd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -151,13 +151,13 @@ jobs: - name: Upload Screenshots if: failure() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: screenshots path: tests/Browser/screenshots - name: Upload Console Logs if: failure() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: console path: tests/Browser/console