original_string: public function finalize()
      {
          /** @var Process $process */
          $process = $this->process;
  
          if ($process) {
              $process->wait();
  
              if ($process->isSuccessful()) {
                  $this->successful = true;
                  $this->output =  $process->getOutput();
              } else {
                  $this->successful = false;
                  $this->output =  $process->getErrorOutput();
              }
  
              $this->postRun();
  
              unset($this->process);
          }
      }
code: public function finalize()
      {
          /** @var Process $process */
          $process = $this->process;
  
          if ($process) {
              $process->wait();
  
              if ($process->isSuccessful()) {
                  $this->successful = true;
                  $this->output =  $process->getOutput();
              } else {
                  $this->successful = false;
                  $this->output =  $process->getErrorOutput();
              }
  
              $this->postRun();
  
              unset($this->process);
          }
      }
code_tokens: public function finalize ( ) { /** @var Process $process */ $ process = $ this -> process ; if ( $ process ) { $ process -> wait ( ) ; if ( $ process -> isSuccessful ( ) ) { $ this -> successful = true ; $ this -> output = $ process -> getOutput ( ) ; } else { $ this -> successful = false ; $ this -> output = $ process -> getErrorOutput ( ) ; } $ this -> postRun ( ) ; unset ( $ this -> process ) ; } }
docstring: Finish up processing the job
  
  @return void
docstring_tokens: Finish up processing the job