original_string: protected function applyCriteria(Builder $builder, array $criteria)
      {
          foreach ($criteria as $criterion) {
              $criterion->apply($builder);
          }
      }
code: protected function applyCriteria(Builder $builder, array $criteria)
      {
          foreach ($criteria as $criterion) {
              $criterion->apply($builder);
          }
      }
code_tokens: protected function applyCriteria ( Builder $ builder , array $ criteria ) { foreach ( $ criteria as $ criterion ) { $ criterion -> apply ( $ builder ) ; } }
docstring: Applies criteria to query
  
  @param Builder $builder query builder
  @param Criterion[] $criteria sorting criteria
docstring_tokens: Applies criteria to query