Piwik\Plugins\Installation\Widgets\GetSystemCheck::render PHP Method

render() public method

public render ( )
    public function render()
    {
        $report = $this->diagnosticService->runDiagnostics();
        $numErrors = $report->getErrorCount();
        $numWarnings = $report->getWarningCount();
        $errors = array();
        $warnings = array();
        if ($report->hasErrors()) {
            $errors = $this->getResults($report, DiagnosticResult::STATUS_ERROR);
        }
        if ($report->hasWarnings()) {
            $warnings = $this->getResults($report, DiagnosticResult::STATUS_WARNING);
        }
        return $this->renderTemplate('getSystemCheckWidget', array('numErrors' => $numErrors, 'numWarnings' => $numWarnings, 'errors' => $errors, 'warnings' => $warnings));
    }