original_string: public function applyFilters(QueryBuilder $queryBuilder, $alias, FilterBagInterface $filterBag = null)
      {
          if (is_null($filterBag)) {
              return $queryBuilder;
          }
  
          foreach ($filterBag->all() as $filter) {
              if ($filter instanceof FilterNode) {
                  $this->applyFilter($queryBuilder, $alias, $filter);
              }
          }
  
          return $queryBuilder;
      }
code: public function applyFilters(QueryBuilder $queryBuilder, $alias, FilterBagInterface $filterBag = null)
      {
          if (is_null($filterBag)) {
              return $queryBuilder;
          }
  
          foreach ($filterBag->all() as $filter) {
              if ($filter instanceof FilterNode) {
                  $this->applyFilter($queryBuilder, $alias, $filter);
              }
          }
  
          return $queryBuilder;
      }
code_tokens: public function applyFilters ( QueryBuilder $ queryBuilder , $ alias , FilterBagInterface $ filterBag = null ) { if ( is_null ( $ filterBag ) ) { return $ queryBuilder ; } foreach ( $ filterBag -> all ( ) as $ filter ) { if ( $ filter instanceof FilterNode ) { $ this -> applyFilter ( $ queryBuilder , $ alias , $ filter ) ; } } return $ queryBuilder ; }
docstring: Apply filters from a filter bag on the provided query builder
  
  @param QueryBuilder       $queryBuilder QueryBuilder
  @param string             $alias        QueryBuilder root alias
  @param FilterBagInterface $filterBag    Filters to apply
  
  @return QueryBuilder
docstring_tokens: Apply filters from a filter bag on the provided query builder