src/PermissionMatcher.php
protected function matchAuthzGroupPaths($pattern, $subject)
    {
        $regex = '^' . str_replace('[^/]+', '\\*', preg_quote($pattern, '~')) . '$';
        $regex = str_replace('\\*', '(.*)', $regex);

        $match = preg_match('~' . $regex . '~i', $subject);

        return $match;
    }
protected function matchAuthzGroupPaths($pattern, $subject)
    {
        $regex = '^' . str_replace('[^/]+', '\\*', preg_quote($pattern, '~')) . '$';
        $regex = str_replace('\\*', '(.*)', $regex);

        $match = preg_match('~' . $regex . '~i', $subject);

        return $match;
    }
protected function matchAuthzGroupPaths ( $ pattern , $ subject ) { $ regex = '^' . str_replace ( '[^/]+' , '\\*' , preg_quote ( $ pattern , '~' ) ) . '$' ; $ regex = str_replace ( '\\*' , '(.*)' , $ regex ) ; $ match = preg_match ( '~' . $ regex . '~i' , $ subject ) ; return $ match ; }
Check if one paths mathes the other

@param string $pattern
@param string $subject
@return boolean
Check if one paths mathes the other