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());
    }
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());
    }
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 ( ) ) ; }
Can the user subscribe to this forum?

@param stdClass $user The user to check
@return bool
Can the user subscribe to this forum?