original_string: public function getWithUriFallback()
      {
          if (($get = $this->export()) !== null) {
              // Host defined by the Host directive
              return $get;
          } elseif ($this->base !== $this->effective &&
              parse_url($this->base, PHP_URL_HOST) === ($host = parse_url($this->effective, PHP_URL_HOST))
          ) {
              // Host is the same, but Scheme or Port is different
              return getservbyname($scheme = parse_url($this->effective, PHP_URL_SCHEME), 'tcp') === parse_url($this->effective, PHP_URL_PORT) ? $scheme . '://' . $host : $this->effective;
          }
          // Return Host name only
          return parse_url($this->effective, PHP_URL_HOST);
      }
code: public function getWithUriFallback()
      {
          if (($get = $this->export()) !== null) {
              // Host defined by the Host directive
              return $get;
          } elseif ($this->base !== $this->effective &&
              parse_url($this->base, PHP_URL_HOST) === ($host = parse_url($this->effective, PHP_URL_HOST))
          ) {
              // Host is the same, but Scheme or Port is different
              return getservbyname($scheme = parse_url($this->effective, PHP_URL_SCHEME), 'tcp') === parse_url($this->effective, PHP_URL_PORT) ? $scheme . '://' . $host : $this->effective;
          }
          // Return Host name only
          return parse_url($this->effective, PHP_URL_HOST);
      }
code_tokens: public function getWithUriFallback ( ) { if ( ( $ get = $ this -> export ( ) ) !== null ) { // Host defined by the Host directive return $ get ; } elseif ( $ this -> base !== $ this -> effective && parse_url ( $ this -> base , PHP_URL_HOST ) === ( $ host = parse_url ( $ this -> effective , PHP_URL_HOST ) ) ) { // Host is the same, but Scheme or Port is different return getservbyname ( $ scheme = parse_url ( $ this -> effective , PHP_URL_SCHEME ) , 'tcp' ) === parse_url ( $ this -> effective , PHP_URL_PORT ) ? $ scheme . '://' . $ host : $ this -> effective ; } // Return Host name only return parse_url ( $ this -> effective , PHP_URL_HOST ) ; }
docstring: Get Host, falls back to Effective Request URI if not found
  
  @return string
docstring_tokens: Get Host falls back to Effective Request URI if not found