private function checkCleanParamRule($rule, $path)
    {
        $cleanParam = $this->explodeCleanParamRule($rule);
        // check if path prefix matches the path of the url we're checking
        if (!$this->checkBasicRule($cleanParam['path'], $path)) {
            return false;
        }
        foreach ($cleanParam['param'] as $param) {
            if (!strpos($path, "?$param=")
                && !strpos($path, "&$param=")
            ) {
                return false;
            }
        }
        $this->log[] = 'Rule match: ' . self::DIRECTIVE_CLEAN_PARAM . ' directive';
        return true;
    }
private function checkCleanParamRule($rule, $path)
    {
        $cleanParam = $this->explodeCleanParamRule($rule);
        // check if path prefix matches the path of the url we're checking
        if (!$this->checkBasicRule($cleanParam['path'], $path)) {
            return false;
        }
        foreach ($cleanParam['param'] as $param) {
            if (!strpos($path, "?$param=")
                && !strpos($path, "&$param=")
            ) {
                return false;
            }
        }
        $this->log[] = 'Rule match: ' . self::DIRECTIVE_CLEAN_PARAM . ' directive';
        return true;
    }
private function checkCleanParamRule ( $ rule , $ path ) { $ cleanParam = $ this -> explodeCleanParamRule ( $ rule ) ; // check if path prefix matches the path of the url we're checking if ( ! $ this -> checkBasicRule ( $ cleanParam [ 'path' ] , $ path ) ) { return false ; } foreach ( $ cleanParam [ 'param' ] as $ param ) { if ( ! strpos ( $ path , "?$param=" ) && ! strpos ( $ path , "&$param=" ) ) { return false ; } } $ this -> log [ ] = 'Rule match: ' . self :: DIRECTIVE_CLEAN_PARAM . ' directive' ; return true ; }
Check Clean-Param rule

@param  string $rule
@param  string $path
@return bool
Check Clean - Param rule