original_string: protected function resourcePathMatch(File $file) {
          $source_dirpath = str_replace('#', '\#', $this->sourceDir->getAbsolutePath());
          $source_dirpath = str_replace('[', '\[', $source_dirpath);
          $source_dirpath = str_replace(']', '\]', $source_dirpath);
          $source_dirpath = str_replace('(', '\(', $source_dirpath);
          $source_dirpath = str_replace(')', '\)', $source_dirpath);
          return preg_match('#^' . $source_dirpath . '/' . $this->getRegex() . '#', $file->getAbsolutePath()) ? TRUE : FALSE;
      }
code: protected function resourcePathMatch(File $file) {
          $source_dirpath = str_replace('#', '\#', $this->sourceDir->getAbsolutePath());
          $source_dirpath = str_replace('[', '\[', $source_dirpath);
          $source_dirpath = str_replace(']', '\]', $source_dirpath);
          $source_dirpath = str_replace('(', '\(', $source_dirpath);
          $source_dirpath = str_replace(')', '\)', $source_dirpath);
          return preg_match('#^' . $source_dirpath . '/' . $this->getRegex() . '#', $file->getAbsolutePath()) ? TRUE : FALSE;
      }
code_tokens: protected function resourcePathMatch ( File $ file ) { $ source_dirpath = str_replace ( '#' , '\#' , $ this -> sourceDir -> getAbsolutePath ( ) ) ; $ source_dirpath = str_replace ( '[' , '\[' , $ source_dirpath ) ; $ source_dirpath = str_replace ( ']' , '\]' , $ source_dirpath ) ; $ source_dirpath = str_replace ( '(' , '\(' , $ source_dirpath ) ; $ source_dirpath = str_replace ( ')' , '\)' , $ source_dirpath ) ; return preg_match ( '#^' . $ source_dirpath . '/' . $ this -> getRegex ( ) . '#' , $ file -> getAbsolutePath ( ) ) ? TRUE : FALSE ; }
docstring: Check if the resource match this road
  @param File $file
  @return boolean
docstring_tokens: Check if the resource match this road