original_string: public function addSocialRelation(User $user, $serviceName, AbstractUser $response)
      {
          // create relation for new user and social integration
          return $this->newQB()->insert(
              [
                  'user_id'    => $user->id,
                  'social_id'  => $serviceName . '_' . $response->id,
                  'created_at' => \DB::raw('NOW()')
              ]
          );
      }
code: public function addSocialRelation(User $user, $serviceName, AbstractUser $response)
      {
          // create relation for new user and social integration
          return $this->newQB()->insert(
              [
                  'user_id'    => $user->id,
                  'social_id'  => $serviceName . '_' . $response->id,
                  'created_at' => \DB::raw('NOW()')
              ]
          );
      }
code_tokens: public function addSocialRelation ( User $ user , $ serviceName , AbstractUser $ response ) { // create relation for new user and social integration return $ this -> newQB ( ) -> insert ( [ 'user_id' => $ user -> id , 'social_id' => $ serviceName . '_' . $ response -> id , 'created_at' => \ DB :: raw ( 'NOW()' ) ] ) ; }
docstring: Function creates relation for given user and social integration.
  
  @param $user        User user entity
  @param $serviceName string name of social service
  @param $response    AbstractUser response data
  
  @return mixed
docstring_tokens: Function creates relation for given user and social integration .