original_string: public function can_update() {
          return in_array($this->mode,
                  array(
                      tool_uploadcourse_processor::MODE_UPDATE_ONLY,
                      tool_uploadcourse_processor::MODE_CREATE_OR_UPDATE)
                  ) && $this->updatemode != tool_uploadcourse_processor::UPDATE_NOTHING;
      }
code: public function can_update() {
          return in_array($this->mode,
                  array(
                      tool_uploadcourse_processor::MODE_UPDATE_ONLY,
                      tool_uploadcourse_processor::MODE_CREATE_OR_UPDATE)
                  ) && $this->updatemode != tool_uploadcourse_processor::UPDATE_NOTHING;
      }
code_tokens: public function can_update ( ) { return in_array ( $ this -> mode , array ( tool_uploadcourse_processor :: MODE_UPDATE_ONLY , tool_uploadcourse_processor :: MODE_CREATE_OR_UPDATE ) ) && $ this -> updatemode != tool_uploadcourse_processor :: UPDATE_NOTHING ; }
docstring: Does the mode allow for course update?
  
  @return bool
docstring_tokens: Does the mode allow for course update?