original_string: protected function replacePattern($pattern) {
      $replace = array(
        '$DIR' => dirname($this->configFile),
        '$CWD' => getcwd(),
      );
      return str_replace(array_keys($replace), array_values($replace), $pattern);
    }
code: protected function replacePattern($pattern) {
      $replace = array(
        '$DIR' => dirname($this->configFile),
        '$CWD' => getcwd(),
      );
      return str_replace(array_keys($replace), array_values($replace), $pattern);
    }
code_tokens: protected function replacePattern ( $ pattern ) { $ replace = array ( '$DIR' => dirname ( $ this -> configFile ) , '$CWD' => getcwd ( ) , ) ; return str_replace ( array_keys ( $ replace ) , array_values ( $ replace ) , $ pattern ) ; }
docstring: Helper to replace certain patterns with actual values.
  
  @param string $pattern
  Pattern to be replaced
  
  @return string
docstring_tokens: Helper to replace certain patterns with actual values .