original_string: private static function buildHtmlAttribute($attributes)
      {
          $html = '';
          foreach ($attributes as $name => $value) {
              $html .= ' '.$name.'="'.$value.'"';
              $class_list = explode(' ', $value);
              foreach ($class_list as $class_name) {
                  switch ($class_name) {
                      case 'class':
                          if (function_exists('hookAddClassHtmlTag')) {
                              hookAddClassHtmlTag($class_name);
                          }
                  }
              }
          }
  
          return $html;
      }
code: private static function buildHtmlAttribute($attributes)
      {
          $html = '';
          foreach ($attributes as $name => $value) {
              $html .= ' '.$name.'="'.$value.'"';
              $class_list = explode(' ', $value);
              foreach ($class_list as $class_name) {
                  switch ($class_name) {
                      case 'class':
                          if (function_exists('hookAddClassHtmlTag')) {
                              hookAddClassHtmlTag($class_name);
                          }
                  }
              }
          }
  
          return $html;
      }
code_tokens: private static function buildHtmlAttribute ( $ attributes ) { $ html = '' ; foreach ( $ attributes as $ name => $ value ) { $ html .= ' ' . $ name . '="' . $ value . '"' ; $ class_list = explode ( ' ' , $ value ) ; foreach ( $ class_list as $ class_name ) { switch ( $ class_name ) { case 'class' : if ( function_exists ( 'hookAddClassHtmlTag' ) ) { hookAddClassHtmlTag ( $ class_name ) ; } } } } return $ html ; }
docstring: Build html attributes from array.
  
  @param array $attributes
  
  @return string
docstring_tokens: Build html attributes from array .