From 1b88775d471f2c1bc5d5a088110ea72753061473 Mon Sep 17 00:00:00 2001 From: warcooft Date: Sun, 6 Oct 2024 19:47:14 +0700 Subject: [PATCH] respect coding standards, rector --- src/Controllers/OAuthController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Controllers/OAuthController.php b/src/Controllers/OAuthController.php index fad930c..6652d8b 100644 --- a/src/Controllers/OAuthController.php +++ b/src/Controllers/OAuthController.php @@ -13,6 +13,7 @@ namespace Datamweb\ShieldOAuth\Controllers; +use Throwable; use App\Controllers\BaseController; use CodeIgniter\HTTP\RedirectResponse; use CodeIgniter\Shield\Entities\User; @@ -108,8 +109,8 @@ public function callBack(): RedirectResponse try { $userid = $users->insert($entitiesUser); - } catch (\Throwable $th) { - //If the insert fails due to a duplicate key entry, see the log message for audit. + } catch (Throwable $th) { + // If the insert fails due to a duplicate key entry, see the log message for audit. return redirect()->to(config('Auth')->logoutRedirect())->with('error', lang('ShieldOAuthLang.Callback.account_disabled')); }