original_string: protected function filterList(array &$list, array $allowed_fields, array $query)
      {
          $filter = array_intersect_key($query, array_flip($allowed_fields));
  
          if (!empty($filter)) {
              $list = array_filter($list, function ($item) use ($filter) {
                  return $this->callbackFilterList($item, $filter);
              });
          }
      }
code: protected function filterList(array &$list, array $allowed_fields, array $query)
      {
          $filter = array_intersect_key($query, array_flip($allowed_fields));
  
          if (!empty($filter)) {
              $list = array_filter($list, function ($item) use ($filter) {
                  return $this->callbackFilterList($item, $filter);
              });
          }
      }
code_tokens: protected function filterList ( array & $ list , array $ allowed_fields , array $ query ) { $ filter = array_intersect_key ( $ query , array_flip ( $ allowed_fields ) ) ; if ( ! empty ( $ filter ) ) { $ list = array_filter ( $ list , function ( $ item ) use ( $ filter ) { return $ this -> callbackFilterList ( $ item , $ filter ) ; } ) ; } }
docstring: Filter the list by a field
  @param array $list
  @param array $allowed_fields
  @param array $query
docstring_tokens: Filter the list by a field