original_string: public function process(base_moodleform $form = null) {
          $form = $this->initialise_stage_form();
          // Check it hasn't been cancelled.
          if ($form->is_cancelled()) {
              $this->ui->cancel_process();
          }
  
          $data = $form->get_data();
          if ($data && confirm_sesskey()) {
              return 0;
          } else {
              return false;
          }
      }
code: public function process(base_moodleform $form = null) {
          $form = $this->initialise_stage_form();
          // Check it hasn't been cancelled.
          if ($form->is_cancelled()) {
              $this->ui->cancel_process();
          }
  
          $data = $form->get_data();
          if ($data && confirm_sesskey()) {
              return 0;
          } else {
              return false;
          }
      }
code_tokens: public function process ( base_moodleform $ form = null ) { $ form = $ this -> initialise_stage_form ( ) ; // Check it hasn't been cancelled. if ( $ form -> is_cancelled ( ) ) { $ this -> ui -> cancel_process ( ) ; } $ data = $ form -> get_data ( ) ; if ( $ data && confirm_sesskey ( ) ) { return 0 ; } else { return false ; } }
docstring: Processes the confirmation stage
  
  @param base_moodleform $form
  @return int The number of changes the user made
docstring_tokens: Processes the confirmation stage