protected function checkRuleSwitch($rule, $path)
    {
        switch ($this->isInlineDirective($rule)) {
            case self::DIRECTIVE_CLEAN_PARAM:
                if ($this->checkCleanParamRule($this->stripInlineDirective($rule), $path)) {
                    return true;
                }
                break;
            case self::DIRECTIVE_HOST;
                if ($this->checkHostRule($this->stripInlineDirective($rule))) {
                    return true;
                }
                break;
            default:
                if ($this->checkBasicRule($rule, $path)) {
                    return true;
                }
        }
        return false;
    }
protected function checkRuleSwitch($rule, $path)
    {
        switch ($this->isInlineDirective($rule)) {
            case self::DIRECTIVE_CLEAN_PARAM:
                if ($this->checkCleanParamRule($this->stripInlineDirective($rule), $path)) {
                    return true;
                }
                break;
            case self::DIRECTIVE_HOST;
                if ($this->checkHostRule($this->stripInlineDirective($rule))) {
                    return true;
                }
                break;
            default:
                if ($this->checkBasicRule($rule, $path)) {
                    return true;
                }
        }
        return false;
    }
protected function checkRuleSwitch ( $ rule , $ path ) { switch ( $ this -> isInlineDirective ( $ rule ) ) { case self :: DIRECTIVE_CLEAN_PARAM : if ( $ this -> checkCleanParamRule ( $ this -> stripInlineDirective ( $ rule ) , $ path ) ) { return true ; } break ; case self :: DIRECTIVE_HOST ; if ( $ this -> checkHostRule ( $ this -> stripInlineDirective ( $ rule ) ) ) { return true ; } break ; default : if ( $ this -> checkBasicRule ( $ rule , $ path ) ) { return true ; } } return false ; }
Check rule switch

@param  string $rule - rule to check
@param  string $path - path to check
@return bool
Check rule switch