original_string: public function attr(array $attributes)
      {
          $result = '';
  
          foreach ($attributes as $attribute => $value) {
              $result .= ' '.(is_int($attribute) ? $value : $attribute.'="'.str_replace('"', '&quot;', $value).'"');
          }
  
          return $result;
      }
code: public function attr(array $attributes)
      {
          $result = '';
  
          foreach ($attributes as $attribute => $value) {
              $result .= ' '.(is_int($attribute) ? $value : $attribute.'="'.str_replace('"', '&quot;', $value).'"');
          }
  
          return $result;
      }
code_tokens: public function attr ( array $ attributes ) { $ result = '' ; foreach ( $ attributes as $ attribute => $ value ) { $ result .= ' ' . ( is_int ( $ attribute ) ? $ value : $ attribute . '="' . str_replace ( '"' , '&quot;' , $ value ) . '"' ) ; } return $ result ; }
docstring: Render the attributes
  
  @param  array  $attributes
  @return string
docstring_tokens: Render the attributes