original_string: private function classForFile(SplFileInfo $file): string
      {
          $subnamespace = str_replace('/', '\\', $file->getRelativePath());
          if (!empty($subnamespace)) {
              $subnamespace .= '\\';
          }
          $class = $this->namespace.'\\'.$subnamespace.$file->getBasename('.php');
  
          return $class;
      }
code: private function classForFile(SplFileInfo $file): string
      {
          $subnamespace = str_replace('/', '\\', $file->getRelativePath());
          if (!empty($subnamespace)) {
              $subnamespace .= '\\';
          }
          $class = $this->namespace.'\\'.$subnamespace.$file->getBasename('.php');
  
          return $class;
      }
code_tokens: private function classForFile ( SplFileInfo $ file ) : string { $ subnamespace = str_replace ( '/' , '\\' , $ file -> getRelativePath ( ) ) ; if ( ! empty ( $ subnamespace ) ) { $ subnamespace .= '\\' ; } $ class = $ this -> namespace . '\\' . $ subnamespace . $ file -> getBasename ( '.php' ) ; return $ class ; }
docstring: Given a file path, return the PSR-4 class it should contain.
  
  @param SplFileInfo $file The file to generate the class name for.
  
  @return string The fully-qualified class name.
docstring_tokens: Given a file path return the PSR - 4 class it should contain .