Iri::scheme_normalization()

In this article

Source

protected function scheme_normalization() {
	if (isset($this->normalization[$this->scheme]['iuserinfo']) && $this->iuserinfo === $this->normalization[$this->scheme]['iuserinfo']) {
		$this->iuserinfo = null;
	}
	if (isset($this->normalization[$this->scheme]['ihost']) && $this->ihost === $this->normalization[$this->scheme]['ihost']) {
		$this->ihost = null;
	}
	if (isset($this->normalization[$this->scheme]['port']) && $this->port === $this->normalization[$this->scheme]['port']) {
		$this->port = null;
	}
	if (isset($this->normalization[$this->scheme]['ipath']) && $this->ipath === $this->normalization[$this->scheme]['ipath']) {
		$this->ipath = '';
	}
	if (isset($this->ihost) && empty($this->ipath)) {
		$this->ipath = '/';
	}
	if (isset($this->normalization[$this->scheme]['iquery']) && $this->iquery === $this->normalization[$this->scheme]['iquery']) {
		$this->iquery = null;
	}
	if (isset($this->normalization[$this->scheme]['ifragment']) && $this->ifragment === $this->normalization[$this->scheme]['ifragment']) {
		$this->ifragment = null;
	}
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.