original_string: public function can_favourite_discussion(stdClass $user) : bool {
          $context = $this->get_context();
          return has_capability('mod/forum:cantogglefavourite', $context, $user);
      }
code: public function can_favourite_discussion(stdClass $user) : bool {
          $context = $this->get_context();
          return has_capability('mod/forum:cantogglefavourite', $context, $user);
      }
code_tokens: public function can_favourite_discussion ( stdClass $ user ) : bool { $ context = $ this -> get_context ( ) ; return has_capability ( 'mod/forum:cantogglefavourite' , $ context , $ user ) ; }
docstring: Can the user favourite the discussion
  
  @param stdClass $user The user to check
  @return bool
docstring_tokens: Can the user favourite the discussion