original_string: public static function standardiseFile($file)
      {
          $fileName = ltrim($file, '\\');
          $file      = '';
          $namespace = '';
          if ($lastNsPos = strripos($fileName, '\\')) {
              $namespace = substr($fileName, 0, $lastNsPos);
              $fileName = substr($fileName, $lastNsPos + 1);
              $file      = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
          }
          $file .= str_replace('_', DIRECTORY_SEPARATOR, $fileName) . '.php';
          return $file;    
      }
code: public static function standardiseFile($file)
      {
          $fileName = ltrim($file, '\\');
          $file      = '';
          $namespace = '';
          if ($lastNsPos = strripos($fileName, '\\')) {
              $namespace = substr($fileName, 0, $lastNsPos);
              $fileName = substr($fileName, $lastNsPos + 1);
              $file      = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
          }
          $file .= str_replace('_', DIRECTORY_SEPARATOR, $fileName) . '.php';
          return $file;    
      }
code_tokens: public static function standardiseFile ( $ file ) { $ fileName = ltrim ( $ file , '\\' ) ; $ file = '' ; $ namespace = '' ; if ( $ lastNsPos = strripos ( $ fileName , '\\' ) ) { $ namespace = substr ( $ fileName , 0 , $ lastNsPos ) ; $ fileName = substr ( $ fileName , $ lastNsPos + 1 ) ; $ file = str_replace ( '\\' , DIRECTORY_SEPARATOR , $ namespace ) . DIRECTORY_SEPARATOR ; } $ file .= str_replace ( '_' , DIRECTORY_SEPARATOR , $ fileName ) . '.php' ; return $ file ; }
docstring: Standardise the filename.
  
  Convert the supplied filename into the namespace-aware standard,
  based on the Framework Interop Group reference implementation:
  http://groups.google.com/group/php-standards/web/psr-0-final-proposal
  
  The filename must be formatted as "$file.php".
  
  @param string $file - The file name to be loaded.
  @return string
docstring_tokens: Standardise the filename .