original_string: public function spam(Comment &$comment)
      {
          $endpoint = '/admin/comments/'.$comment->id.'/spam.json';
          $response = $this->request($endpoint, 'POST');
          $comment->setData($response['comment']);
      }
code: public function spam(Comment &$comment)
      {
          $endpoint = '/admin/comments/'.$comment->id.'/spam.json';
          $response = $this->request($endpoint, 'POST');
          $comment->setData($response['comment']);
      }
code_tokens: public function spam ( Comment & $ comment ) { $ endpoint = '/admin/comments/' . $ comment -> id . '/spam.json' ; $ response = $ this -> request ( $ endpoint , 'POST' ) ; $ comment -> setData ( $ response [ 'comment' ] ) ; }
docstring: Mark comment as spam
  
  @link   https://help.shopify.com/api/reference/comment#spam
  @param  Comment $comment
  @return void
docstring_tokens: Mark comment as spam