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();
    }
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();
    }
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 ( ) ; }
Things to run after job has run
Things to run after job has run