original_string: protected function transformClassNameToFilename($class, $directory)
      {
          // $class may contain a namespace portion, in  which case we need
          // to preserve any underscores in that portion.
          $matches = array();
          preg_match('/(?P<namespace>.+\\\)?(?P<class>[^\\\]+$)/', $class, $matches);
  
          $class     = (isset($matches['class'])) ? $matches['class'] : '';
          $namespace = (isset($matches['namespace'])) ? $matches['namespace'] : '';
  
          return $directory
               . str_replace(self::NS_SEPARATOR, '/', $namespace)
               . str_replace(self::PREFIX_SEPARATOR, '/', $class)
               . '.php';
      }
code: protected function transformClassNameToFilename($class, $directory)
      {
          // $class may contain a namespace portion, in  which case we need
          // to preserve any underscores in that portion.
          $matches = array();
          preg_match('/(?P<namespace>.+\\\)?(?P<class>[^\\\]+$)/', $class, $matches);
  
          $class     = (isset($matches['class'])) ? $matches['class'] : '';
          $namespace = (isset($matches['namespace'])) ? $matches['namespace'] : '';
  
          return $directory
               . str_replace(self::NS_SEPARATOR, '/', $namespace)
               . str_replace(self::PREFIX_SEPARATOR, '/', $class)
               . '.php';
      }
code_tokens: protected function transformClassNameToFilename ( $ class , $ directory ) { // $class may contain a namespace portion, in  which case we need // to preserve any underscores in that portion. $ matches = array ( ) ; preg_match ( '/(?P<namespace>.+\\\)?(?P<class>[^\\\]+$)/' , $ class , $ matches ) ; $ class = ( isset ( $ matches [ 'class' ] ) ) ? $ matches [ 'class' ] : '' ; $ namespace = ( isset ( $ matches [ 'namespace' ] ) ) ? $ matches [ 'namespace' ] : '' ; return $ directory . str_replace ( self :: NS_SEPARATOR , '/' , $ namespace ) . str_replace ( self :: PREFIX_SEPARATOR , '/' , $ class ) . '.php' ; }
docstring: Transform the class name to a filename
  
  @param  string $class
  @param  string $directory
  @return string
docstring_tokens: Transform the class name to a filename