src/Builder.php
public function htmlReport($data=[])
    {
        // Forcefully remove headers that might have been set by some
        // templates, controllers or plugins when rendering pages.
        header_remove();
        $root = dirname(__DIR__);
        $data['styles'] = file_get_contents($root . '/assets/report.css');
        $data['script'] = file_get_contents($root . '/assets/report.js');
        $body = Tpl::load(__DIR__ . '/report.php', $data);
        return new Response($body, 'html', $data['error'] ? 500 : 200);
    }
public function htmlReport($data=[])
    {
        // Forcefully remove headers that might have been set by some
        // templates, controllers or plugins when rendering pages.
        header_remove();
        $root = dirname(__DIR__);
        $data['styles'] = file_get_contents($root . '/assets/report.css');
        $data['script'] = file_get_contents($root . '/assets/report.js');
        $body = Tpl::load(__DIR__ . '/report.php', $data);
        return new Response($body, 'html', $data['error'] ? 500 : 200);
    }
public function htmlReport ( $ data = [ ] ) { // Forcefully remove headers that might have been set by some // templates, controllers or plugins when rendering pages. header_remove ( ) ; $ root = dirname ( __DIR__ ) ; $ data [ 'styles' ] = file_get_contents ( $ root . '/assets/report.css' ) ; $ data [ 'script' ] = file_get_contents ( $ root . '/assets/report.js' ) ; $ body = Tpl :: load ( __DIR__ . '/report.php' , $ data ) ; return new Response ( $ body , 'html' , $ data [ 'error' ] ? 500 : 200 ) ; }
Render the HTML report page

@param array $data
@return Response
Render the HTML report page