original_string: protected function get_progress_trace_instance() {
          if ($this->progress === null) {
              if (!$this->table->is_downloading()) {
                  $this->progress = new \core\progress\display_if_slow(get_string('calculatingallstats', 'quiz_statistics'));
                  $this->progress->set_display_names();
              } else {
                  $this->progress = new \core\progress\none();
              }
          }
          return $this->progress;
      }
code: protected function get_progress_trace_instance() {
          if ($this->progress === null) {
              if (!$this->table->is_downloading()) {
                  $this->progress = new \core\progress\display_if_slow(get_string('calculatingallstats', 'quiz_statistics'));
                  $this->progress->set_display_names();
              } else {
                  $this->progress = new \core\progress\none();
              }
          }
          return $this->progress;
      }
code_tokens: protected function get_progress_trace_instance ( ) { if ( $ this -> progress === null ) { if ( ! $ this -> table -> is_downloading ( ) ) { $ this -> progress = new \ core \ progress \ display_if_slow ( get_string ( 'calculatingallstats' , 'quiz_statistics' ) ) ; $ this -> progress -> set_display_names ( ) ; } else { $ this -> progress = new \ core \ progress \ none ( ) ; } } return $ this -> progress ; }
docstring: Appropriate instance depending if we want html output for the user or not.
  
  @return \core\progress\base child of \core\progress\base to handle the display (or not) of task progress.
docstring_tokens: Appropriate instance depending if we want html output for the user or not .