EscolaLMS/Auth

View on GitHub
src/Services/SocialAccountService.php

Summary

Maintainability
A
1 hr
Test Coverage
A
93%

Method getReturnUrl has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getReturnUrl(string $provider, ?string $returnUrl, ?string $state): string
    {
        $socialUser = Socialite::driver($provider)->stateless()->user();
        $socialAccount = $this->socialAccountRepository->findByProviderAndProviderId($provider, $socialUser->getId());

Severity: Minor
Found in src/Services/SocialAccountService.php - About 1 hr to fix

    Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            AuthServiceContract $authService,
            UserServiceContract $userService,
            SocialAccountRepositoryContract $socialAccountRepository,
            UserRepositoryContract $userRepository,
            PreUserRepositoryContract $preUserRepository
    Severity: Minor
    Found in src/Services/SocialAccountService.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status