original_string: protected function add_autosaved_step(question_attempt_step $step) {
          $this->steps[] = $step;
          $this->autosavedstep = $step;
          end($this->steps);
          $this->observer->notify_step_added($step, $this, -key($this->steps));
      }
code: protected function add_autosaved_step(question_attempt_step $step) {
          $this->steps[] = $step;
          $this->autosavedstep = $step;
          end($this->steps);
          $this->observer->notify_step_added($step, $this, -key($this->steps));
      }
code_tokens: protected function add_autosaved_step ( question_attempt_step $ step ) { $ this -> steps [ ] = $ step ; $ this -> autosavedstep = $ step ; end ( $ this -> steps ) ; $ this -> observer -> notify_step_added ( $ step , $ this , - key ( $ this -> steps ) ) ; }
docstring: Add an auto-saved step to this question attempt. We mark auto-saved steps by
  changing saving the step number with a - sign.
  @param question_attempt_step $step the new step.
docstring_tokens: Add an auto - saved step to this question attempt . We mark auto - saved steps by changing saving the step number with a - sign .