original_string: protected function buildStreamContext()
      {
          $opts = [];
  
          // If we have a logger defined, merge the context options from our logger with the context array
          if ($this->logQueries() && $logger = $this->logger()) {
              $opts['mongodb'] = $logger->getContext();
          }
  
          $context = stream_context_create($opts);
          return ['context' => $context];
      }
code: protected function buildStreamContext()
      {
          $opts = [];
  
          // If we have a logger defined, merge the context options from our logger with the context array
          if ($this->logQueries() && $logger = $this->logger()) {
              $opts['mongodb'] = $logger->getContext();
          }
  
          $context = stream_context_create($opts);
          return ['context' => $context];
      }
code_tokens: protected function buildStreamContext ( ) { $ opts = [ ] ; // If we have a logger defined, merge the context options from our logger with the context array if ( $ this -> logQueries ( ) && $ logger = $ this -> logger ( ) ) { $ opts [ 'mongodb' ] = $ logger -> getContext ( ) ; } $ context = stream_context_create ( $ opts ) ; return [ 'context' => $ context ] ; }
docstring: Builds our context object for passing in query logging options as well as the SSL context for HTTPS
  
  @return array
docstring_tokens: Builds our context object for passing in query logging options as well as the SSL context for HTTPS