original_string: protected function parseName($name)
      {
          if (str_contains($name, '\\')) {
              $name = str_replace('\\', '/', $name);
          }
  
          if (str_contains($name, '/')) {
              $formats = collect(explode('/', $name))->map(function ($name)
              {
                  return Str::studly($name);
              });
  
              $name = $formats->implode('/');
          } else {
              $name = Str::studly($name);
          }
  
          return $name;
      }
code: protected function parseName($name)
      {
          if (str_contains($name, '\\')) {
              $name = str_replace('\\', '/', $name);
          }
  
          if (str_contains($name, '/')) {
              $formats = collect(explode('/', $name))->map(function ($name)
              {
                  return Str::studly($name);
              });
  
              $name = $formats->implode('/');
          } else {
              $name = Str::studly($name);
          }
  
          return $name;
      }
code_tokens: protected function parseName ( $ name ) { if ( str_contains ( $ name , '\\' ) ) { $ name = str_replace ( '\\' , '/' , $ name ) ; } if ( str_contains ( $ name , '/' ) ) { $ formats = collect ( explode ( '/' , $ name ) ) -> map ( function ( $ name ) { return Str :: studly ( $ name ) ; } ) ; $ name = $ formats -> implode ( '/' ) ; } else { $ name = Str :: studly ( $ name ) ; } return $ name ; }
docstring: Parse class name of the Package.
  
  @param string $slug
  
  @return string
docstring_tokens: Parse class name of the Package .