protected function retrieveOutput()
    {
        if ((! config('eyewitness.capture_cron_output')) || (! file_exists($this->output))) {
            return null;
        }

        $text = file_get_contents($this->output);

        if (str_contains($this->output, 'eyewitness_cron_') && file_exists($this->output)) {
            unlink($this->output);
        }

        return substr($text, 0, 15000);
    }
protected function retrieveOutput()
    {
        if ((! config('eyewitness.capture_cron_output')) || (! file_exists($this->output))) {
            return null;
        }

        $text = file_get_contents($this->output);

        if (str_contains($this->output, 'eyewitness_cron_') && file_exists($this->output)) {
            unlink($this->output);
        }

        return substr($text, 0, 15000);
    }
protected function retrieveOutput ( ) { if ( ( ! config ( 'eyewitness.capture_cron_output' ) ) || ( ! file_exists ( $ this -> output ) ) ) { return null ; } $ text = file_get_contents ( $ this -> output ) ; if ( str_contains ( $ this -> output , 'eyewitness_cron_' ) && file_exists ( $ this -> output ) ) { unlink ( $ this -> output ) ; } return substr ( $ text , 0 , 15000 ) ; }
Get the output from the last scheduled job. Only remove the file if we created
it specifically for Eyewitness - otherwise leave it alone for the framework
to handle as normal.

@return mixed
Get the output from the last scheduled job . Only remove the file if we created it specifically for Eyewitness - otherwise leave it alone for the framework to handle as normal .