From b322221c514d84b559c8321d51933268fab37f74 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Fri, 24 Nov 2023 21:14:28 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Http/Controllers/Auth/SocialLoginController.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/Auth/SocialLoginController.php b/app/Http/Controllers/Auth/SocialLoginController.php index 31079a7a4..7490e1799 100644 --- a/app/Http/Controllers/Auth/SocialLoginController.php +++ b/app/Http/Controllers/Auth/SocialLoginController.php @@ -33,7 +33,6 @@ public function redirectTo() return RouteServiceProvider::HOME; } - /** * Redirects the user to the specified provider for authentication. * @@ -45,15 +44,14 @@ public function redirectToProvider($provider) return Socialite::driver($provider)->redirect(); } - /** * Handles the callback from the provider. * * @param string $provider The provider name. * @return \Illuminate\Http\RedirectResponse The redirect response. + * @return RedirectResponse The redirect response. * * @throws Exception If an error occurs during the process. - * @return RedirectResponse The redirect response. */ public function handleProviderCallback($provider) { @@ -85,12 +83,12 @@ public function split_name($name) return [$first_name, $last_name]; } - + /** * Finds or creates a user based on the social user and provider. * - * @param object $socialUser The social user object. - * @param string $provider The provider name. + * @param object $socialUser The social user object. + * @param string $provider The provider name. * @return object The created or existing user object. */ private function findOrCreateUser($socialUser, $provider)