original_string: public function can_view_participants(stdClass $user, discussion_entity $discussion) : bool {
          return course_can_view_participants($this->get_context()) &&
              !$this->must_post_before_viewing_discussion($user, $discussion);
      }
code: public function can_view_participants(stdClass $user, discussion_entity $discussion) : bool {
          return course_can_view_participants($this->get_context()) &&
              !$this->must_post_before_viewing_discussion($user, $discussion);
      }
code_tokens: public function can_view_participants ( stdClass $ user , discussion_entity $ discussion ) : bool { return course_can_view_participants ( $ this -> get_context ( ) ) && ! $ this -> must_post_before_viewing_discussion ( $ user , $ discussion ) ; }
docstring: Can the user view the participants of this discussion?
  
  @param stdClass $user The user to check
  @param discussion_entity $discussion The discussion to check
  @return bool
docstring_tokens: Can the user view the participants of this discussion?