original_string: protected function matchAuthzGroupPaths($pattern, $subject)
      {
          $regex = '^' . str_replace('[^/]+', '\\*', preg_quote($pattern, '~')) . '$';
          $regex = str_replace('\\*', '(.*)', $regex);
  
          $match = preg_match('~' . $regex . '~i', $subject);
  
          return $match;
      }
code: protected function matchAuthzGroupPaths($pattern, $subject)
      {
          $regex = '^' . str_replace('[^/]+', '\\*', preg_quote($pattern, '~')) . '$';
          $regex = str_replace('\\*', '(.*)', $regex);
  
          $match = preg_match('~' . $regex . '~i', $subject);
  
          return $match;
      }
code_tokens: protected function matchAuthzGroupPaths ( $ pattern , $ subject ) { $ regex = '^' . str_replace ( '[^/]+' , '\\*' , preg_quote ( $ pattern , '~' ) ) . '$' ; $ regex = str_replace ( '\\*' , '(.*)' , $ regex ) ; $ match = preg_match ( '~' . $ regex . '~i' , $ subject ) ; return $ match ; }
docstring: Check if one paths mathes the other
  
  @param string $pattern
  @param string $subject
  @return boolean
docstring_tokens: Check if one paths mathes the other