original_string: public function col_feedbacktext($attempt) {
          if ($attempt->state != quiz_attempt::FINISHED) {
              return '-';
          }
  
          $feedback = quiz_report_feedback_for_grade(
                  quiz_rescale_grade($attempt->sumgrades, $this->quiz, false),
                  $this->quiz->id, $this->context);
  
          if ($this->is_downloading()) {
              $feedback = strip_tags($feedback);
          }
  
          return $feedback;
      }
code: public function col_feedbacktext($attempt) {
          if ($attempt->state != quiz_attempt::FINISHED) {
              return '-';
          }
  
          $feedback = quiz_report_feedback_for_grade(
                  quiz_rescale_grade($attempt->sumgrades, $this->quiz, false),
                  $this->quiz->id, $this->context);
  
          if ($this->is_downloading()) {
              $feedback = strip_tags($feedback);
          }
  
          return $feedback;
      }
code_tokens: public function col_feedbacktext ( $ attempt ) { if ( $ attempt -> state != quiz_attempt :: FINISHED ) { return '-' ; } $ feedback = quiz_report_feedback_for_grade ( quiz_rescale_grade ( $ attempt -> sumgrades , $ this -> quiz , false ) , $ this -> quiz -> id , $ this -> context ) ; if ( $ this -> is_downloading ( ) ) { $ feedback = strip_tags ( $ feedback ) ; } return $ feedback ; }
docstring: Generate the display of the feedback column.
  @param object $attempt the table row being output.
  @return string HTML content to go inside the td.
docstring_tokens: Generate the display of the feedback column .