original_string: public function adjust_display_options(question_display_options $options) {
          if (!$this->qa->has_marks()) {
              $options->correctness = false;
              $options->numpartscorrect = false;
          }
          if ($this->qa->get_state()->is_finished()) {
              $options->readonly = true;
              $options->numpartscorrect = $options->numpartscorrect &&
                      $this->qa->get_state()->is_partially_correct() &&
                      !empty($this->question->shownumcorrect);
          } else {
              $options->hide_all_feedback();
          }
      }
code: public function adjust_display_options(question_display_options $options) {
          if (!$this->qa->has_marks()) {
              $options->correctness = false;
              $options->numpartscorrect = false;
          }
          if ($this->qa->get_state()->is_finished()) {
              $options->readonly = true;
              $options->numpartscorrect = $options->numpartscorrect &&
                      $this->qa->get_state()->is_partially_correct() &&
                      !empty($this->question->shownumcorrect);
          } else {
              $options->hide_all_feedback();
          }
      }
code_tokens: public function adjust_display_options ( question_display_options $ options ) { if ( ! $ this -> qa -> has_marks ( ) ) { $ options -> correctness = false ; $ options -> numpartscorrect = false ; } if ( $ this -> qa -> get_state ( ) -> is_finished ( ) ) { $ options -> readonly = true ; $ options -> numpartscorrect = $ options -> numpartscorrect && $ this -> qa -> get_state ( ) -> is_partially_correct ( ) && ! empty ( $ this -> question -> shownumcorrect ) ; } else { $ options -> hide_all_feedback ( ) ; } }
docstring: Make any changes to the display options before a question is rendered, so
  that it can be displayed in a way that is appropriate for the statue it is
  currently in. For example, by default, if the question is finished, we
  ensure that it is only ever displayed read-only.
  @param question_display_options $options the options to adjust. Just change
  the properties of this object - objects are passed by referece.
docstring_tokens: Make any changes to the display options before a question is rendered so that it can be displayed in a way that is appropriate for the statue it is currently in . For example by default if the question is finished we ensure that it is only ever displayed read - only .