original_string: public static function is_subscribable($forum) {
          return (isloggedin() && !isguestuser() &&
                  !\mod_forum\subscriptions::is_forcesubscribed($forum) &&
                  !\mod_forum\subscriptions::subscription_disabled($forum));
      }
code: public static function is_subscribable($forum) {
          return (isloggedin() && !isguestuser() &&
                  !\mod_forum\subscriptions::is_forcesubscribed($forum) &&
                  !\mod_forum\subscriptions::subscription_disabled($forum));
      }
code_tokens: public static function is_subscribable ( $ forum ) { return ( isloggedin ( ) && ! isguestuser ( ) && ! \ mod_forum \ subscriptions :: is_forcesubscribed ( $ forum ) && ! \ mod_forum \ subscriptions :: subscription_disabled ( $ forum ) ) ; }
docstring: Helper to determine whether the specified forum can be subscribed to.
  
  @param \stdClass $forum The record of the forum to test
  @return bool
docstring_tokens: Helper to determine whether the specified forum can be subscribed to .