code: protected function buildInConsoleOneCat()
      {
          // find category
          foreach ($this->stats['counts'] as $category => $catStats) {
              if ($catStats['inConsole']) {
                  break;
              }
          }
          if ($category == 'fatal') {
              return '';
          }
          $catStrings = array(
              'deprecated' => array(
                  'header' => 'Deprecated',
                  'msg' => 'There were %d deprecated notices',
              ),
              'strict' => array(
                  'header' => 'Strict',
                  'msg' => 'There were %d strict errors',
              ),
              'error' => array(
                  'header' => 'Errors',
                  'msg' => 'There were %d errors',
              ),
              'notice' => array(
                  'header' => 'Notices',
                  'msg' => 'There were %d notices',
              ),
              'warning' => array(
                  'header' => 'Warnings',
                  'msg' => 'There were %d warnings',
              ),
          );
          $countInCat = $catStats['inConsole'];
          if ($countInCat == 1) {
              $header = \ucfirst($category);
              $error = $this->getErrorsInCategory($category)[0];
              $msg = $error['file']. '(line '.$error['line'].'): '
                  .($error['isHtml']
                      ? $error['message']
                      : \htmlspecialchars($error['message']));
          } else {
              $header = $catStrings[$category]['header'];
              $msg = \sprintf($catStrings[$category]['msg'], $countInCat);
          }
          $html = '<h3>'.$header.'</h3>'
              .'<ul class="list-unstyled indent">'
                  .'<li class="error-'.$category.'">'.$msg.'</li>'
                  .'</ul>';
          return $html;
      }
docs: Returns summary for errors that were logged to console (while collect = true)
  
  Assumes only 1 category of error was logged
  However, multiple errors in this category may have been logged
  
  @return string