original_string: public function addUserSocialAccount(User $user, $serviceName, AbstractUser $response)
      {
          $user->has_social_integrations = true;
          $user->save();
          // create relation for new user and social integration
          $this->addSocialRelation($user, $serviceName, $response);
          return $user;
      }
code: public function addUserSocialAccount(User $user, $serviceName, AbstractUser $response)
      {
          $user->has_social_integrations = true;
          $user->save();
          // create relation for new user and social integration
          $this->addSocialRelation($user, $serviceName, $response);
          return $user;
      }
code_tokens: public function addUserSocialAccount ( User $ user , $ serviceName , AbstractUser $ response ) { $ user -> has_social_integrations = true ; $ user -> save ( ) ; // create relation for new user and social integration $ this -> addSocialRelation ( $ user , $ serviceName , $ response ) ; return $ user ; }
docstring: Function adds new social account for existing user.
  
  @param $user        User user entity
  @param $serviceName string name of social service
  @param $response    AbstractUser response data
  
  @return User
docstring_tokens: Function adds new social account for existing user .