protected function getFiles()
    {

        $filename = storage_path('temp') . DIRECTORY_SEPARATOR . str_random() . '.html';

        file_put_contents($filename, $this->src);
        $files              = [$filename];
        $this->kernelConsole->call('report:analyzer');
        $analyzerReportFile = trim($this->kernelConsole->output());
        if (file_exists($analyzerReportFile)) {
            array_push($files, $analyzerReportFile);
        }
        $return = [];

        foreach ($files as $index => $file) {
            $return["files[{$index}]"] = new CURLFile($file);
        }
        return $return;
    }
protected function getFiles()
    {

        $filename = storage_path('temp') . DIRECTORY_SEPARATOR . str_random() . '.html';

        file_put_contents($filename, $this->src);
        $files              = [$filename];
        $this->kernelConsole->call('report:analyzer');
        $analyzerReportFile = trim($this->kernelConsole->output());
        if (file_exists($analyzerReportFile)) {
            array_push($files, $analyzerReportFile);
        }
        $return = [];

        foreach ($files as $index => $file) {
            $return["files[{$index}]"] = new CURLFile($file);
        }
        return $return;
    }
protected function getFiles ( ) { $ filename = storage_path ( 'temp' ) . DIRECTORY_SEPARATOR . str_random ( ) . '.html' ; file_put_contents ( $ filename , $ this -> src ) ; $ files = [ $ filename ] ; $ this -> kernelConsole -> call ( 'report:analyzer' ) ; $ analyzerReportFile = trim ( $ this -> kernelConsole -> output ( ) ) ; if ( file_exists ( $ analyzerReportFile ) ) { array_push ( $ files , $ analyzerReportFile ) ; } $ return = [ ] ; foreach ( $ files as $ index => $ file ) { $ return [ "files[{$index}]" ] = new CURLFile ( $ file ) ; } return $ return ; }
get list of files to transfer report exception

@return array
get list of files to transfer report exception