original_string: protected function showFieldLabels($field)
      {
          if (in_array($field->type, ['checkbox', 'switch', 'section'])) {
              return false;
          }
  
          if ($field->type === 'widget') {
              return $this->makeFormFieldWidget($field)->showLabels;
          }
  
          return true;
      }
code: protected function showFieldLabels($field)
      {
          if (in_array($field->type, ['checkbox', 'switch', 'section'])) {
              return false;
          }
  
          if ($field->type === 'widget') {
              return $this->makeFormFieldWidget($field)->showLabels;
          }
  
          return true;
      }
code_tokens: protected function showFieldLabels ( $ field ) { if ( in_array ( $ field -> type , [ 'checkbox' , 'switch' , 'section' ] ) ) { return false ; } if ( $ field -> type === 'widget' ) { return $ this -> makeFormFieldWidget ( $ field ) -> showLabels ; } return true ; }
docstring: Helper method to determine if field should be rendered
  with label and comments.
  @param  \Backend\Classes\FormField $field
  @return boolean
docstring_tokens: Helper method to determine if field should be rendered with label and comments .