original_string: protected function getContextOptions($all = false)
      {
          if ($this->contextOptions === null) {
              $this->contextOptions   = stream_context_get_options($this->context);
          }
  
          if (!$all && array_key_exists(self::$protocol, $this->contextOptions)) {
              return $this->contextOptions[self::$protocol];
          } else if ($all) {
              return $this->contextOptions;
          } else {
              return array();
          }
      }
code: protected function getContextOptions($all = false)
      {
          if ($this->contextOptions === null) {
              $this->contextOptions   = stream_context_get_options($this->context);
          }
  
          if (!$all && array_key_exists(self::$protocol, $this->contextOptions)) {
              return $this->contextOptions[self::$protocol];
          } else if ($all) {
              return $this->contextOptions;
          } else {
              return array();
          }
      }
code_tokens: protected function getContextOptions ( $ all = false ) { if ( $ this -> contextOptions === null ) { $ this -> contextOptions = stream_context_get_options ( $ this -> context ) ; } if ( ! $ all && array_key_exists ( self :: $ protocol , $ this -> contextOptions ) ) { return $ this -> contextOptions [ self :: $ protocol ] ; } else if ( $ all ) { return $ this -> contextOptions ; } else { return array ( ) ; } }
docstring: Parses the passed stream context and returns the context options
  relevant for this stream wrapper
  
  @param   boolean $all    Return all options instead of just the relevant options
  @return  array           The context options
docstring_tokens: Parses the passed stream context and returns the context options relevant for this stream wrapper