original_string: protected function get_default_add_context() {
          if (calendar_user_can_add_event($this->calendar->course)) {
              return \context_course::instance($this->calendar->course->id);
          }
  
          return null;
      }
code: protected function get_default_add_context() {
          if (calendar_user_can_add_event($this->calendar->course)) {
              return \context_course::instance($this->calendar->course->id);
          }
  
          return null;
      }
code_tokens: protected function get_default_add_context ( ) { if ( calendar_user_can_add_event ( $ this -> calendar -> course ) ) { return \ context_course :: instance ( $ this -> calendar -> course -> id ) ; } return null ; }
docstring: Get the default context for use when adding a new event.
  
  @return null|\context
docstring_tokens: Get the default context for use when adding a new event .