original_string: private function checkBasicRule($rule, $path)
      {
          $rule = $this->prepareRegexRule($this->encode_url($rule));
          // change @ to \@
          $escaped = strtr($rule, array('@' => '\@'));
          // match result
          if (preg_match('@' . $escaped . '@', $path)) {
  	        $this->log[] = 'Rule match: Path';
  	        return true;
          }
          return false;
      }
code: private function checkBasicRule($rule, $path)
      {
          $rule = $this->prepareRegexRule($this->encode_url($rule));
          // change @ to \@
          $escaped = strtr($rule, array('@' => '\@'));
          // match result
          if (preg_match('@' . $escaped . '@', $path)) {
  	        $this->log[] = 'Rule match: Path';
  	        return true;
          }
          return false;
      }
code_tokens: private function checkBasicRule ( $ rule , $ path ) { $ rule = $ this -> prepareRegexRule ( $ this -> encode_url ( $ rule ) ) ; // change @ to \@ $ escaped = strtr ( $ rule , array ( '@' => '\@' ) ) ; // match result if ( preg_match ( '@' . $ escaped . '@' , $ path ) ) { $ this -> log [ ] = 'Rule match: Path' ; return true ; } return false ; }
docstring: Check basic rule
  
  @param  string $rule
  @param  string $path
  @return bool
docstring_tokens: Check basic rule