original_string: public function processList($list, $subListType = 'ul')
      {
          $out = '';
  
          foreach ($list as $key => $value) {
              if (is_array($value) && (isset($value['list']) || isset($value['attr']))) {
                  $attr = (isset($value['attr'])) ? $value['attr'] : null;
                  $listAttr = (isset($value['listAttr'])) ? $value['listAttr'] : null;
                  $subList = (isset($value['list'])) ? $this->{$subListType}($value['list'], $listAttr) : '';
  
                  $out .= $this->tag('li', $attr, $key . $subList, true);
              } elseif (is_array($value)) {
                  $out .= $this->tag('li', null, $key . $this->{$subListType}($value), true);
              } else {
                  $out .= $this->tag('li', null, $value, true);
              }
          }
  
          return $out;
      }
code: public function processList($list, $subListType = 'ul')
      {
          $out = '';
  
          foreach ($list as $key => $value) {
              if (is_array($value) && (isset($value['list']) || isset($value['attr']))) {
                  $attr = (isset($value['attr'])) ? $value['attr'] : null;
                  $listAttr = (isset($value['listAttr'])) ? $value['listAttr'] : null;
                  $subList = (isset($value['list'])) ? $this->{$subListType}($value['list'], $listAttr) : '';
  
                  $out .= $this->tag('li', $attr, $key . $subList, true);
              } elseif (is_array($value)) {
                  $out .= $this->tag('li', null, $key . $this->{$subListType}($value), true);
              } else {
                  $out .= $this->tag('li', null, $value, true);
              }
          }
  
          return $out;
      }
code_tokens: public function processList ( $ list , $ subListType = 'ul' ) { $ out = '' ; foreach ( $ list as $ key => $ value ) { if ( is_array ( $ value ) && ( isset ( $ value [ 'list' ] ) || isset ( $ value [ 'attr' ] ) ) ) { $ attr = ( isset ( $ value [ 'attr' ] ) ) ? $ value [ 'attr' ] : null ; $ listAttr = ( isset ( $ value [ 'listAttr' ] ) ) ? $ value [ 'listAttr' ] : null ; $ subList = ( isset ( $ value [ 'list' ] ) ) ? $ this -> { $ subListType } ( $ value [ 'list' ] , $ listAttr ) : '' ; $ out .= $ this -> tag ( 'li' , $ attr , $ key . $ subList , true ) ; } elseif ( is_array ( $ value ) ) { $ out .= $ this -> tag ( 'li' , null , $ key . $ this -> { $ subListType } ( $ value ) , true ) ; } else { $ out .= $ this -> tag ( 'li' , null , $ value , true ) ; } } return $ out ; }
docstring: process list items
  
  @todo    add ability to define sublists from within the list
  @param   array   Array of list items to process
  @param   string  method to use for sub-lists
  @return  string
docstring_tokens: process list items