original_string: protected function qualifyClass($name)
      {
          $rootNamespace = $this->rootNamespace();
  
          if (Str::startsWith($name, $rootNamespace . '\\')) {
              return $name;
          }
  
          $name = str_replace('/', '\\', $name);
  
          return $this->qualifyClass(
              $this->getDefaultNamespace(trim($rootNamespace, '\\')) . '\\' . $name
          );
      }
code: protected function qualifyClass($name)
      {
          $rootNamespace = $this->rootNamespace();
  
          if (Str::startsWith($name, $rootNamespace . '\\')) {
              return $name;
          }
  
          $name = str_replace('/', '\\', $name);
  
          return $this->qualifyClass(
              $this->getDefaultNamespace(trim($rootNamespace, '\\')) . '\\' . $name
          );
      }
code_tokens: protected function qualifyClass ( $ name ) { $ rootNamespace = $ this -> rootNamespace ( ) ; if ( Str :: startsWith ( $ name , $ rootNamespace . '\\' ) ) { return $ name ; } $ name = str_replace ( '/' , '\\' , $ name ) ; return $ this -> qualifyClass ( $ this -> getDefaultNamespace ( trim ( $ rootNamespace , '\\' ) ) . '\\' . $ name ) ; }
docstring: Parse the class name and format according to the root namespace.
  
  @param string $name
  
  @return string
docstring_tokens: Parse the class name and format according to the root namespace .