protected function buildInConsole()
    {
        if (!$this->stats['inConsole']) {
            return '';
        }
        $haveFatal = isset($this->stats['counts']['fatal']);
        if ($haveFatal) {
            $countNonFatal = $this->stats['inConsole'] - $this->stats['counts']['fatal']['inConsole'];
            $header = \sprintf(
                'There %s %d additional %s',
                $countNonFatal === 1 ? 'was' : 'were',
                $countNonFatal,
                $countNonFatal === 1 ? 'error' : 'errors'
            );
        } elseif ($this->stats['inConsoleCategories'] === 1) {
            return $this->buildInConsoleOneCat();
        } else {
            $header = 'There were '.$this->stats['inConsole'].' errors';
        }
        $html = '<h3>'.$header.':</h3>'."\n";
        $html .= '<ul class="list-unstyled indent">';
        foreach ($this->stats['counts'] as $category => $a) {
            if (!$a['inConsole'] || $category == 'fatal') {
                continue;
            }
            $html .= '<li class="error-'.$category.'">'.$category.': '.$a['inConsole'].'</li>';
        }
        $html .= '</ul>';
        return $html;
    }
protected function buildInConsole()
    {
        if (!$this->stats['inConsole']) {
            return '';
        }
        $haveFatal = isset($this->stats['counts']['fatal']);
        if ($haveFatal) {
            $countNonFatal = $this->stats['inConsole'] - $this->stats['counts']['fatal']['inConsole'];
            $header = \sprintf(
                'There %s %d additional %s',
                $countNonFatal === 1 ? 'was' : 'were',
                $countNonFatal,
                $countNonFatal === 1 ? 'error' : 'errors'
            );
        } elseif ($this->stats['inConsoleCategories'] === 1) {
            return $this->buildInConsoleOneCat();
        } else {
            $header = 'There were '.$this->stats['inConsole'].' errors';
        }
        $html = '<h3>'.$header.':</h3>'."\n";
        $html .= '<ul class="list-unstyled indent">';
        foreach ($this->stats['counts'] as $category => $a) {
            if (!$a['inConsole'] || $category == 'fatal') {
                continue;
            }
            $html .= '<li class="error-'.$category.'">'.$category.': '.$a['inConsole'].'</li>';
        }
        $html .= '</ul>';
        return $html;
    }
Returns summary for errors that were logged to console (while collect = true)

@return string