original_string: protected function getFileKey($basePath, \SplFileInfo $file)
      {
          $baseLength = strlen(rtrim($basePath, DIRECTORY_SEPARATOR));
          
          return substr($file->getPath(), $baseLength) . DIRECTORY_SEPARATOR 
                  . $file->getBasename('.' . $file->getExtension());
      }
code: protected function getFileKey($basePath, \SplFileInfo $file)
      {
          $baseLength = strlen(rtrim($basePath, DIRECTORY_SEPARATOR));
          
          return substr($file->getPath(), $baseLength) . DIRECTORY_SEPARATOR 
                  . $file->getBasename('.' . $file->getExtension());
      }
code_tokens: protected function getFileKey ( $ basePath , \ SplFileInfo $ file ) { $ baseLength = strlen ( rtrim ( $ basePath , DIRECTORY_SEPARATOR ) ) ; return substr ( $ file -> getPath ( ) , $ baseLength ) . DIRECTORY_SEPARATOR . $ file -> getBasename ( '.' . $ file -> getExtension ( ) ) ; }
docstring: Get relative key for a file
  
  @param string $basepath
  @param \SplFileInfo $file
docstring_tokens: Get relative key for a file