original_string: protected function bootstrapNavs(array $items, $class, $stacked) {
  
          $attributes = [];
  
          $attributes["class"][] = "nav";
          $attributes["class"][] = $class;
          $attributes["class"][] = true === $stacked ? "nav-stacked" : null;
  
          $innerHTML = [];
          foreach ($items as $current) {
              $innerHTML[] = $this->bootstrapNav($current);
          }
  
          return static::coreHTMLElement("ul", "\n" . implode("\n", $innerHTML) . "\n", $attributes);
      }
code: protected function bootstrapNavs(array $items, $class, $stacked) {
  
          $attributes = [];
  
          $attributes["class"][] = "nav";
          $attributes["class"][] = $class;
          $attributes["class"][] = true === $stacked ? "nav-stacked" : null;
  
          $innerHTML = [];
          foreach ($items as $current) {
              $innerHTML[] = $this->bootstrapNav($current);
          }
  
          return static::coreHTMLElement("ul", "\n" . implode("\n", $innerHTML) . "\n", $attributes);
      }
code_tokens: protected function bootstrapNavs ( array $ items , $ class , $ stacked ) { $ attributes = [ ] ; $ attributes [ "class" ] [ ] = "nav" ; $ attributes [ "class" ] [ ] = $ class ; $ attributes [ "class" ] [ ] = true === $ stacked ? "nav-stacked" : null ; $ innerHTML = [ ] ; foreach ( $ items as $ current ) { $ innerHTML [ ] = $ this -> bootstrapNav ( $ current ) ; } return static :: coreHTMLElement ( "ul" , "\n" . implode ( "\n" , $ innerHTML ) . "\n" , $ attributes ) ; }
docstring: Displays a Bootstrap navs.
  
  @param array $items The items.
  @param string $class The class.
  @param bool $stacked Stacked ?
  @return string Returns the Bootstrap nav.
docstring_tokens: Displays a Bootstrap navs .