original_string: protected function google(Oauth2Service\Google $google, TokenInterface $token)
      {
          $user = json_decode($google->request('https://www.googleapis.com/oauth2/v1/userinfo'), true);
  
          $loginRequest = new LoginRequest(
              'google',
              $user['id'],
              $token->getAccessToken(),
              $token->getEndOfLife() > 0 ? $token->getEndOfLife() : 0,
              $token->getRefreshToken(),
              [$user['email']]
          );
  
          return $loginRequest;
      }
code: protected function google(Oauth2Service\Google $google, TokenInterface $token)
      {
          $user = json_decode($google->request('https://www.googleapis.com/oauth2/v1/userinfo'), true);
  
          $loginRequest = new LoginRequest(
              'google',
              $user['id'],
              $token->getAccessToken(),
              $token->getEndOfLife() > 0 ? $token->getEndOfLife() : 0,
              $token->getRefreshToken(),
              [$user['email']]
          );
  
          return $loginRequest;
      }
code_tokens: protected function google ( Oauth2Service \ Google $ google , TokenInterface $ token ) { $ user = json_decode ( $ google -> request ( 'https://www.googleapis.com/oauth2/v1/userinfo' ) , true ) ; $ loginRequest = new LoginRequest ( 'google' , $ user [ 'id' ] , $ token -> getAccessToken ( ) , $ token -> getEndOfLife ( ) > 0 ? $ token -> getEndOfLife ( ) : 0 , $ token -> getRefreshToken ( ) , [ $ user [ 'email' ] ] ) ; return $ loginRequest ; }
docstring: Request access token from Google and return a LoginRequest object for logging into our app
  
  @param  Oauth2Service\Google $google
  @param  TokenInterface       $token
  @return LoginRequest
docstring_tokens: Request access token from Google and return a LoginRequest object for logging into our app