original_string: private function postRun()
      {
          if (count($this->outputTo) > 0) {
              foreach ($this->outputTo as $file) {
                  $output_mode = $this->outputMode === 'append' ? FILE_APPEND | LOCK_EX : LOCK_EX;
                  file_put_contents($file, $this->output, $output_mode);
              }
          }
  
          // Send output to email
          $this->emailOutput();
  
          // Call any callback defined
          if (is_callable($this->after)) {
              call_user_func($this->after, $this->output, $this->returnCode);
          }
  
          $this->removeLockFile();
      }
code: private function postRun()
      {
          if (count($this->outputTo) > 0) {
              foreach ($this->outputTo as $file) {
                  $output_mode = $this->outputMode === 'append' ? FILE_APPEND | LOCK_EX : LOCK_EX;
                  file_put_contents($file, $this->output, $output_mode);
              }
          }
  
          // Send output to email
          $this->emailOutput();
  
          // Call any callback defined
          if (is_callable($this->after)) {
              call_user_func($this->after, $this->output, $this->returnCode);
          }
  
          $this->removeLockFile();
      }
code_tokens: private function postRun ( ) { if ( count ( $ this -> outputTo ) > 0 ) { foreach ( $ this -> outputTo as $ file ) { $ output_mode = $ this -> outputMode === 'append' ? FILE_APPEND | LOCK_EX : LOCK_EX ; file_put_contents ( $ file , $ this -> output , $ output_mode ) ; } } // Send output to email $ this -> emailOutput ( ) ; // Call any callback defined if ( is_callable ( $ this -> after ) ) { call_user_func ( $ this -> after , $ this -> output , $ this -> returnCode ) ; } $ this -> removeLockFile ( ) ; }
docstring: Things to run after job has run
docstring_tokens: Things to run after job has run