original_string: protected function can_preview() {
          return empty($this->question->beingcopied) && !empty($this->question->id) &&
                  $this->question->formoptions->canedit;
      }
code: protected function can_preview() {
          return empty($this->question->beingcopied) && !empty($this->question->id) &&
                  $this->question->formoptions->canedit;
      }
code_tokens: protected function can_preview ( ) { return empty ( $ this -> question -> beingcopied ) && ! empty ( $ this -> question -> id ) && $ this -> question -> formoptions -> canedit ; }
docstring: Is the question being edited in a state where it can be previewed?
  @return bool whether to show the preview link.
docstring_tokens: Is the question being edited in a state where it can be previewed?