original_string: protected static function is_course_expired(\stdClass $course) : bool {
          $context = \context_course::instance($course->id);
  
          return self::is_course_context_expired($context);
      }
code: protected static function is_course_expired(\stdClass $course) : bool {
          $context = \context_course::instance($course->id);
  
          return self::is_course_context_expired($context);
      }
code_tokens: protected static function is_course_expired ( \ stdClass $ course ) : bool { $ context = \ context_course :: instance ( $ course -> id ) ; return self :: is_course_context_expired ( $ context ) ; }
docstring: Check whether the course has expired.
  
  @param   \stdClass   $course
  @return  bool
docstring_tokens: Check whether the course has expired .