original_string: public function attribute($attr, $value = '')
      {
          if (is_array($attr)) {
              foreach ($attr as $key => $value) {
                  $this->attribute($key, $value);
              }
          } else {
              $this->attributes[$attr] = $value;
          }
  
          return $this;
      }
code: public function attribute($attr, $value = '')
      {
          if (is_array($attr)) {
              foreach ($attr as $key => $value) {
                  $this->attribute($key, $value);
              }
          } else {
              $this->attributes[$attr] = $value;
          }
  
          return $this;
      }
code_tokens: public function attribute ( $ attr , $ value = '' ) { if ( is_array ( $ attr ) ) { foreach ( $ attr as $ key => $ value ) { $ this -> attribute ( $ key , $ value ) ; } } else { $ this -> attributes [ $ attr ] = $ value ; } return $ this ; }
docstring: Add form attributes.
  
  @param string|array $attr
  @param string       $value
  
  @return $this
docstring_tokens: Add form attributes .