original_string: public function can_subscribe_to_forum(stdClass $user) : bool {
          if ($this->forum->get_type() == 'single') {
              return false;
          }
  
          return !is_guest($this->get_context(), $user) &&
              subscriptions::is_subscribable($this->get_forum_record());
      }
code: public function can_subscribe_to_forum(stdClass $user) : bool {
          if ($this->forum->get_type() == 'single') {
              return false;
          }
  
          return !is_guest($this->get_context(), $user) &&
              subscriptions::is_subscribable($this->get_forum_record());
      }
code_tokens: public function can_subscribe_to_forum ( stdClass $ user ) : bool { if ( $ this -> forum -> get_type ( ) == 'single' ) { return false ; } return ! is_guest ( $ this -> get_context ( ) , $ user ) && subscriptions :: is_subscribable ( $ this -> get_forum_record ( ) ) ; }
docstring: Can the user subscribe to this forum?
  
  @param stdClass $user The user to check
  @return bool
docstring_tokens: Can the user subscribe to this forum?