Skip to content

Commit

Permalink
Merge pull request #517 from nasirkhan/analysis-APvNDZ
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
nasirkhan authored Nov 24, 2023
2 parents aad812f + b322221 commit f550065
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/Http/Controllers/Auth/SocialLoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public function redirectTo()
return RouteServiceProvider::HOME;
}


/**
* Redirects the user to the specified provider for authentication.
*
Expand All @@ -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)
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f550065

Please sign in to comment.