original_string: protected function getRelativeFilename(SplFileInfo $file)
      {
          $filename = $file->getPathname();
          $regex = sprintf('#^(%s)/(.+)#', $this->directory);
          $matches = array();
  
          preg_match(
              $regex,
              $filename,
              $matches
          );
  
          return $matches[2];
      }
code: protected function getRelativeFilename(SplFileInfo $file)
      {
          $filename = $file->getPathname();
          $regex = sprintf('#^(%s)/(.+)#', $this->directory);
          $matches = array();
  
          preg_match(
              $regex,
              $filename,
              $matches
          );
  
          return $matches[2];
      }
code_tokens: protected function getRelativeFilename ( SplFileInfo $ file ) { $ filename = $ file -> getPathname ( ) ; $ regex = sprintf ( '#^(%s)/(.+)#' , $ this -> directory ) ; $ matches = array ( ) ; preg_match ( $ regex , $ filename , $ matches ) ; return $ matches [ 2 ] ; }
docstring: Get the relative name of the given file.
  
  @param SplFileInfo $file The file to get the relative name for.
  
  @return string
docstring_tokens: Get the relative name of the given file .