DebugKit\View\Helper\TidyHelper::report PHP Метод

report() публичный Метод

Call process if a string is passed, or no prior results exist - and return the results using the toolbar helper to generate a nested navigatable array
public report ( mixed $html = null ) : string
$html mixed null
Результат string
    public function report($html = null)
    {
        if ($html) {
            $this->process($html);
        } elseif ($this->results === null) {
            $this->process($this->_View->output);
        }
        if (!$this->results) {
            return '<p>' . __d('debug_kit', 'No markup errors found') . '</p>';
        }
        foreach ($this->results as &$results) {
            foreach ($results as $type => &$messages) {
                foreach ($messages as &$message) {
                    $message = html_entity_decode($message, ENT_COMPAT, Configure::read('App.encoding'));
                }
            }
        }
        return $this->Toolbar->makeNeatArray(array_filter($this->results), 0, 0, false);
    }