original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Check rule switch
  
  @param  string $rule - rule to check
  @param  string $path - path to check
  @return bool
docstring_tokens: Check rule switch