original_string: private function setFormFieldLabel($name, $options)
      {
          if (isset($options['label']) && $options['label'] != false) {
              $label = isset($options['label']) ? $options['label'] : $this->formatFieldLabel($name);
  
              return FormFacade::label($name, $label, ['class' => 'form-label']).'&nbsp;';
          } elseif (!isset($options['label'])) {
              return FormFacade::label($name, $this->formatFieldLabel($name), ['class' => 'form-label']).'&nbsp;';
          }
      }
code: private function setFormFieldLabel($name, $options)
      {
          if (isset($options['label']) && $options['label'] != false) {
              $label = isset($options['label']) ? $options['label'] : $this->formatFieldLabel($name);
  
              return FormFacade::label($name, $label, ['class' => 'form-label']).'&nbsp;';
          } elseif (!isset($options['label'])) {
              return FormFacade::label($name, $this->formatFieldLabel($name), ['class' => 'form-label']).'&nbsp;';
          }
      }
code_tokens: private function setFormFieldLabel ( $ name , $ options ) { if ( isset ( $ options [ 'label' ] ) && $ options [ 'label' ] != false ) { $ label = isset ( $ options [ 'label' ] ) ? $ options [ 'label' ] : $ this -> formatFieldLabel ( $ name ) ; return FormFacade :: label ( $ name , $ label , [ 'class' => 'form-label' ] ) . '&nbsp;' ; } elseif ( ! isset ( $ options [ 'label' ] ) ) { return FormFacade :: label ( $ name , $ this -> formatFieldLabel ( $ name ) , [ 'class' => 'form-label' ] ) . '&nbsp;' ; } }
docstring: Set the form field label.
  
  @param  string  $name  The field name.
  @param  array  $options  The field attributes.
  @return string  Generated form field label.
docstring_tokens: Set the form field label .