original_string: protected function createBaseBuilder(array $options = [])
      {
          $query = $this->createQueryBuilder();
  
          $this->applyResourceOptions($query, $options);
  
          if (empty($options['sort'])) {
              $this->defaultSort($query, $options);
          }
  
          return $query;
      }
code: protected function createBaseBuilder(array $options = [])
      {
          $query = $this->createQueryBuilder();
  
          $this->applyResourceOptions($query, $options);
  
          if (empty($options['sort'])) {
              $this->defaultSort($query, $options);
          }
  
          return $query;
      }
code_tokens: protected function createBaseBuilder ( array $ options = [ ] ) { $ query = $ this -> createQueryBuilder ( ) ; $ this -> applyResourceOptions ( $ query , $ options ) ; if ( empty ( $ options [ 'sort' ] ) ) { $ this -> defaultSort ( $ query , $ options ) ; } return $ query ; }
docstring: Creates a new query builder with Optimus options set
  @param  array $options
  @return Builder
docstring_tokens: Creates a new query builder with Optimus options set