original_string: public function render_questions_table($includeauto, $data, $header) {
          if (empty($data)) {
              return $this->render_quiz_no_grade_question_notification();
          }
          $output = '';
  
          $table = new html_table();
          $table->class = 'generaltable';
          $table->id = 'questionstograde';
          $table->head = $header;
          $table->data = $data;
  
          $output .= html_writer::table($table);
  
          return $output;
      }
code: public function render_questions_table($includeauto, $data, $header) {
          if (empty($data)) {
              return $this->render_quiz_no_grade_question_notification();
          }
          $output = '';
  
          $table = new html_table();
          $table->class = 'generaltable';
          $table->id = 'questionstograde';
          $table->head = $header;
          $table->data = $data;
  
          $output .= html_writer::table($table);
  
          return $output;
      }
code_tokens: public function render_questions_table ( $ includeauto , $ data , $ header ) { if ( empty ( $ data ) ) { return $ this -> render_quiz_no_grade_question_notification ( ) ; } $ output = '' ; $ table = new html_table ( ) ; $ table -> class = 'generaltable' ; $ table -> id = 'questionstograde' ; $ table -> head = $ header ; $ table -> data = $ data ; $ output .= html_writer :: table ( $ table ) ; return $ output ; }
docstring: Render questions list table.
  
  @param bool $includeauto True to show automatically graded questions.
  @param array $data List of questions.
  @param array $header List of table headers.
  @return string The HTML for the question table.
  @throws coding_exception
docstring_tokens: Render questions list table .