original_string: private function renderErrors(Base $base) : string
      {
          if (! $base->hasErrors()) {
              return '';
          }
  
          $html = '';
  
          foreach ($base->getErrors() as $error) {
              $li = new Tag('li');
              $li->setTextContent($error);
              $html .= $li->render();
          }
  
          $ul = new Tag('ul');
          $ul->setHtmlContent($html);
  
          return $ul->render();
      }
code: private function renderErrors(Base $base) : string
      {
          if (! $base->hasErrors()) {
              return '';
          }
  
          $html = '';
  
          foreach ($base->getErrors() as $error) {
              $li = new Tag('li');
              $li->setTextContent($error);
              $html .= $li->render();
          }
  
          $ul = new Tag('ul');
          $ul->setHtmlContent($html);
  
          return $ul->render();
      }
code_tokens: private function renderErrors ( Base $ base ) : string { if ( ! $ base -> hasErrors ( ) ) { return '' ; } $ html = '' ; foreach ( $ base -> getErrors ( ) as $ error ) { $ li = new Tag ( 'li' ) ; $ li -> setTextContent ( $ error ) ; $ html .= $ li -> render ( ) ; } $ ul = new Tag ( 'ul' ) ; $ ul -> setHtmlContent ( $ html ) ; return $ ul -> render ( ) ; }
docstring: Renders the errors of a Form or an Element as an unordered list.
  
  @param \Brick\Form\Base $base
  
  @return string
docstring_tokens: Renders the errors of a Form or an Element as an unordered list .