original_string: private function generateQueryOptions(array $options = [])
      {
          if (isset($options['query'])) {
              $result = $options['query'] + $this->getDefaultOptions();
          } else {
              $result['query'] = $options + $this->getDefaultOptions();
          }
  
          return $result;
      }
code: private function generateQueryOptions(array $options = [])
      {
          if (isset($options['query'])) {
              $result = $options['query'] + $this->getDefaultOptions();
          } else {
              $result['query'] = $options + $this->getDefaultOptions();
          }
  
          return $result;
      }
code_tokens: private function generateQueryOptions ( array $ options = [ ] ) { if ( isset ( $ options [ 'query' ] ) ) { $ result = $ options [ 'query' ] + $ this -> getDefaultOptions ( ) ; } else { $ result [ 'query' ] = $ options + $ this -> getDefaultOptions ( ) ; } return $ result ; }
docstring: Generate query options
  
  Setting default option to given options array if it does have 'query' key,
  otherwise creating 'query' key with default options
  
  @param array $options
  
  @return array
docstring_tokens: Generate query options