original_string: public function render_adaptive_marks(qbehaviour_adaptive_mark_details $details, question_display_options $options) {
          if ($details->state == question_state::$todo || $options->marks < question_display_options::MARK_AND_MAX) {
              // No grades yet.
              return '';
          }
  
          // Display the grading details from the last graded state.
          $class = $details->state->get_feedback_class();
          return html_writer::tag('div', get_string($class, 'question'),
                          array('class' => 'correctness ' . $class))
                  . html_writer::tag('div', $this->grading_details($details, $options),
                          array('class' => 'gradingdetails'));
      }
code: public function render_adaptive_marks(qbehaviour_adaptive_mark_details $details, question_display_options $options) {
          if ($details->state == question_state::$todo || $options->marks < question_display_options::MARK_AND_MAX) {
              // No grades yet.
              return '';
          }
  
          // Display the grading details from the last graded state.
          $class = $details->state->get_feedback_class();
          return html_writer::tag('div', get_string($class, 'question'),
                          array('class' => 'correctness ' . $class))
                  . html_writer::tag('div', $this->grading_details($details, $options),
                          array('class' => 'gradingdetails'));
      }
code_tokens: public function render_adaptive_marks ( qbehaviour_adaptive_mark_details $ details , question_display_options $ options ) { if ( $ details -> state == question_state :: $ todo || $ options -> marks < question_display_options :: MARK_AND_MAX ) { // No grades yet. return '' ; } // Display the grading details from the last graded state. $ class = $ details -> state -> get_feedback_class ( ) ; return html_writer :: tag ( 'div' , get_string ( $ class , 'question' ) , array ( 'class' => 'correctness ' . $ class ) ) . html_writer :: tag ( 'div' , $ this -> grading_details ( $ details , $ options ) , array ( 'class' => 'gradingdetails' ) ) ; }
docstring: Display the scoring information about an adaptive attempt.
  @param qbehaviour_adaptive_mark_details contains all the score details we need.
  @param question_display_options $options display options.
docstring_tokens: Display the scoring information about an adaptive attempt .