original_string: public function evaluateQueryRule(QueryValue $query, $params = [])
      {
          if(($rule = $query->getRule()) instanceof Rule) {
              $environment = $this->rulesEngineProvider->evaluate($rule);
              $this->rulesEngineProvider->setQueryParams($query->getId(), $params);
              
              return $environment->getQueryResults();
          }
          
          return [];
      }
code: public function evaluateQueryRule(QueryValue $query, $params = [])
      {
          if(($rule = $query->getRule()) instanceof Rule) {
              $environment = $this->rulesEngineProvider->evaluate($rule);
              $this->rulesEngineProvider->setQueryParams($query->getId(), $params);
              
              return $environment->getQueryResults();
          }
          
          return [];
      }
code_tokens: public function evaluateQueryRule ( QueryValue $ query , $ params = [ ] ) { if ( ( $ rule = $ query -> getRule ( ) ) instanceof Rule ) { $ environment = $ this -> rulesEngineProvider -> evaluate ( $ rule ) ; $ this -> rulesEngineProvider -> setQueryParams ( $ query -> getId ( ) , $ params ) ; return $ environment -> getQueryResults ( ) ; } return [ ] ; }
docstring: Evaluate rule with query parameters
  
  @param QueryValue $query
  @param array $params
  @return mixed
docstring_tokens: Evaluate rule with query parameters