original_string: public function getAttributesString(array $attributes = array())
      {
          $attributesString = '';
  
          foreach ($attributes as $name => $values) {
              $value = is_array($values) ? implode(' ', $values) : $values;
              $attributesString .= ' '.$name.'="'.$value.'"';
          }
  
          return $attributesString;
      }
code: public function getAttributesString(array $attributes = array())
      {
          $attributesString = '';
  
          foreach ($attributes as $name => $values) {
              $value = is_array($values) ? implode(' ', $values) : $values;
              $attributesString .= ' '.$name.'="'.$value.'"';
          }
  
          return $attributesString;
      }
code_tokens: public function getAttributesString ( array $ attributes = array ( ) ) { $ attributesString = '' ; foreach ( $ attributes as $ name => $ values ) { $ value = is_array ( $ values ) ? implode ( ' ' , $ values ) : $ values ; $ attributesString .= ' ' . $ name . '="' . $ value . '"' ; } return $ attributesString ; }
docstring: Returns an string for the given attributes ready to be places in an html element
  
  @param array $attributes
  
  @return string
docstring_tokens: Returns an string for the given attributes ready to be places in an html element