original_string: protected function col_intended_weight($questionstat) {
          if ($this->is_calculated_question_summary($questionstat)) {
              list($min, $max) = $questionstat->get_min_max_of('maxmark');
  
              if (is_null($min) && is_null($max)) {
                  return '';
              } else {
                  $min = quiz_report_scale_summarks_as_percentage($min, $this->quiz);
                  $max = quiz_report_scale_summarks_as_percentage($max, $this->quiz);
                  return $this->format_range($min, $max);
              }
          } else {
              return quiz_report_scale_summarks_as_percentage($questionstat->maxmark, $this->quiz);
          }
      }
code: protected function col_intended_weight($questionstat) {
          if ($this->is_calculated_question_summary($questionstat)) {
              list($min, $max) = $questionstat->get_min_max_of('maxmark');
  
              if (is_null($min) && is_null($max)) {
                  return '';
              } else {
                  $min = quiz_report_scale_summarks_as_percentage($min, $this->quiz);
                  $max = quiz_report_scale_summarks_as_percentage($max, $this->quiz);
                  return $this->format_range($min, $max);
              }
          } else {
              return quiz_report_scale_summarks_as_percentage($questionstat->maxmark, $this->quiz);
          }
      }
code_tokens: protected function col_intended_weight ( $ questionstat ) { if ( $ this -> is_calculated_question_summary ( $ questionstat ) ) { list ( $ min , $ max ) = $ questionstat -> get_min_max_of ( 'maxmark' ) ; if ( is_null ( $ min ) && is_null ( $ max ) ) { return '' ; } else { $ min = quiz_report_scale_summarks_as_percentage ( $ min , $ this -> quiz ) ; $ max = quiz_report_scale_summarks_as_percentage ( $ max , $ this -> quiz ) ; return $ this -> format_range ( $ min , $ max ) ; } } else { return quiz_report_scale_summarks_as_percentage ( $ questionstat -> maxmark , $ this -> quiz ) ; } }
docstring: The intended question weight. Maximum mark for the question as a percentage
  of maximum mark for the quiz. That is, the indended influence this question
  on the student's overall mark.
  @param \core_question\statistics\questions\calculated $questionstat stats for the question.
  @return string contents of this table cell.
docstring_tokens: The intended question weight . Maximum mark for the question as a percentage of maximum mark for the quiz . That is the indended influence this question on the student s overall mark .