original_string: public static function inlineList($items, $htmlOptions = array())
      {
          $listItems = array();
          Html::addCssClass($htmlOptions, 'inline-list');
          foreach ($items as $item) {
              $listItems[] = \CHtml::tag('li', $htmlOptions, $item);
          }
  
          if (!empty($listItems)) {
              return \CHtml::tag('ul', $htmlOptions, implode("\n", $listItems));
          }
      }
code: public static function inlineList($items, $htmlOptions = array())
      {
          $listItems = array();
          Html::addCssClass($htmlOptions, 'inline-list');
          foreach ($items as $item) {
              $listItems[] = \CHtml::tag('li', $htmlOptions, $item);
          }
  
          if (!empty($listItems)) {
              return \CHtml::tag('ul', $htmlOptions, implode("\n", $listItems));
          }
      }
code_tokens: public static function inlineList ( $ items , $ htmlOptions = array ( ) ) { $ listItems = array ( ) ; Html :: addCssClass ( $ htmlOptions , 'inline-list' ) ; foreach ( $ items as $ item ) { $ listItems [ ] = \ CHtml :: tag ( 'li' , $ htmlOptions , $ item ) ; } if ( ! empty ( $ listItems ) ) { return \ CHtml :: tag ( 'ul' , $ htmlOptions , implode ( "\n" , $ listItems ) ) ; } }
docstring: Renders and inline list
  @param array $items the items to render
  @param array $htmlOptions the HTML attributes
  @return string the generated list
docstring_tokens: Renders and inline list