original_string: public function resolveFormWidget($name)
      {
          if ($this->formWidgets === null) {
              $this->listFormWidgets();
          }
  
          $hints = $this->formWidgetHints;
  
          if (isset($hints[$name])) {
              return $hints[$name];
          }
  
          $_name = Str::normalizeClassName($name);
          if (isset($this->formWidgets[$_name])) {
              return $_name;
          }
  
          return $name;
      }
code: public function resolveFormWidget($name)
      {
          if ($this->formWidgets === null) {
              $this->listFormWidgets();
          }
  
          $hints = $this->formWidgetHints;
  
          if (isset($hints[$name])) {
              return $hints[$name];
          }
  
          $_name = Str::normalizeClassName($name);
          if (isset($this->formWidgets[$_name])) {
              return $_name;
          }
  
          return $name;
      }
code_tokens: public function resolveFormWidget ( $ name ) { if ( $ this -> formWidgets === null ) { $ this -> listFormWidgets ( ) ; } $ hints = $ this -> formWidgetHints ; if ( isset ( $ hints [ $ name ] ) ) { return $ hints [ $ name ] ; } $ _name = Str :: normalizeClassName ( $ name ) ; if ( isset ( $ this -> formWidgets [ $ _name ] ) ) { return $ _name ; } return $ name ; }
docstring: Returns a class name from a form widget code
  Normalizes a class name or converts an code to its class name.
  @param string $name Class name or form widget code.
  @return string The class name resolved, or the original name.
docstring_tokens: Returns a class name from a form widget code Normalizes a class name or converts an code to its class name .