original_string: public function cancel_process() {
          // Delete temporary restore course if exists.
          if ($this->controller->get_target() == backup::TARGET_NEW_COURSE) {
              $this->cleanup();
          }
          parent::cancel_process();
      }
code: public function cancel_process() {
          // Delete temporary restore course if exists.
          if ($this->controller->get_target() == backup::TARGET_NEW_COURSE) {
              $this->cleanup();
          }
          parent::cancel_process();
      }
code_tokens: public function cancel_process ( ) { // Delete temporary restore course if exists. if ( $ this -> controller -> get_target ( ) == backup :: TARGET_NEW_COURSE ) { $ this -> cleanup ( ) ; } parent :: cancel_process ( ) ; }
docstring: Cancels the current restore and redirects the user back to the relevant place
docstring_tokens: Cancels the current restore and redirects the user back to the relevant place