original_string: protected function col_effective_weight($questionstat) {
          global $OUTPUT;
  
          if ($this->is_calculated_question_summary($questionstat)) {
              list($min, $max) = $questionstat->get_min_max_of('effectiveweight');
  
              if (is_null($min) && is_null($max)) {
                  return '';
              } else {
                  list( , $negcovar) = $questionstat->get_min_max_of('negcovar');
                  if ($negcovar) {
                      $min = get_string('negcovar', 'quiz_statistics');
                  }
  
                  return $this->format_range($min, $max);
              }
          } else if (is_null($questionstat->effectiveweight)) {
              return '';
          } else if ($questionstat->negcovar) {
              $negcovar = get_string('negcovar', 'quiz_statistics');
  
              if (!$this->is_downloading()) {
                  $negcovar = html_writer::tag('div',
                          $negcovar . $OUTPUT->help_icon('negcovar', 'quiz_statistics'),
                          array('class' => 'negcovar'));
              }
  
              return $negcovar;
          } else {
              return $this->format_percentage($questionstat->effectiveweight, false);
          }
      }
code: protected function col_effective_weight($questionstat) {
          global $OUTPUT;
  
          if ($this->is_calculated_question_summary($questionstat)) {
              list($min, $max) = $questionstat->get_min_max_of('effectiveweight');
  
              if (is_null($min) && is_null($max)) {
                  return '';
              } else {
                  list( , $negcovar) = $questionstat->get_min_max_of('negcovar');
                  if ($negcovar) {
                      $min = get_string('negcovar', 'quiz_statistics');
                  }
  
                  return $this->format_range($min, $max);
              }
          } else if (is_null($questionstat->effectiveweight)) {
              return '';
          } else if ($questionstat->negcovar) {
              $negcovar = get_string('negcovar', 'quiz_statistics');
  
              if (!$this->is_downloading()) {
                  $negcovar = html_writer::tag('div',
                          $negcovar . $OUTPUT->help_icon('negcovar', 'quiz_statistics'),
                          array('class' => 'negcovar'));
              }
  
              return $negcovar;
          } else {
              return $this->format_percentage($questionstat->effectiveweight, false);
          }
      }
code_tokens: protected function col_effective_weight ( $ questionstat ) { global $ OUTPUT ; if ( $ this -> is_calculated_question_summary ( $ questionstat ) ) { list ( $ min , $ max ) = $ questionstat -> get_min_max_of ( 'effectiveweight' ) ; if ( is_null ( $ min ) && is_null ( $ max ) ) { return '' ; } else { list ( , $ negcovar ) = $ questionstat -> get_min_max_of ( 'negcovar' ) ; if ( $ negcovar ) { $ min = get_string ( 'negcovar' , 'quiz_statistics' ) ; } return $ this -> format_range ( $ min , $ max ) ; } } else if ( is_null ( $ questionstat -> effectiveweight ) ) { return '' ; } else if ( $ questionstat -> negcovar ) { $ negcovar = get_string ( 'negcovar' , 'quiz_statistics' ) ; if ( ! $ this -> is_downloading ( ) ) { $ negcovar = html_writer :: tag ( 'div' , $ negcovar . $ OUTPUT -> help_icon ( 'negcovar' , 'quiz_statistics' ) , array ( 'class' => 'negcovar' ) ) ; } return $ negcovar ; } else { return $ this -> format_percentage ( $ questionstat -> effectiveweight , false ) ; } }
docstring: The effective question weight. That is, an estimate of the actual
  influence this question has 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 effective question weight . That is an estimate of the actual influence this question has on the student s overall mark .