original_string: public function generateButtonField($attr)
      {
          $value = 'Submit';
  
          if (! empty($attr['value'])) {
              $value = $attr['value'];
          }
          unset($attr['value'], $attr['type']);
  
          return $this->Html->tag('button', $attr, $value, true);
      }
code: public function generateButtonField($attr)
      {
          $value = 'Submit';
  
          if (! empty($attr['value'])) {
              $value = $attr['value'];
          }
          unset($attr['value'], $attr['type']);
  
          return $this->Html->tag('button', $attr, $value, true);
      }
code_tokens: public function generateButtonField ( $ attr ) { $ value = 'Submit' ; if ( ! empty ( $ attr [ 'value' ] ) ) { $ value = $ attr [ 'value' ] ; } unset ( $ attr [ 'value' ] , $ attr [ 'type' ] ) ; return $ this -> Html -> tag ( 'button' , $ attr , $ value , true ) ; }
docstring: generate a button
  
  @param   array   array of attributes
  @return  string
docstring_tokens: generate a button