original_string: public static function getComponentName($component)
      {
          $details = $component->componentDetails();
          $name = $details['name'] ?? 'cms::lang.component.unnamed';
  
          return Lang::get($name);
      }
code: public static function getComponentName($component)
      {
          $details = $component->componentDetails();
          $name = $details['name'] ?? 'cms::lang.component.unnamed';
  
          return Lang::get($name);
      }
code_tokens: public static function getComponentName ( $ component ) { $ details = $ component -> componentDetails ( ) ; $ name = $ details [ 'name' ] ?? 'cms::lang.component.unnamed' ; return Lang :: get ( $ name ) ; }
docstring: Returns a component name.
  @param mixed $component The component object
  @return string
docstring_tokens: Returns a component name .