Conditions | 4 |
Paths | 8 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
87 | public function __toString() |
||
88 | { |
||
89 | $parameters = $this->getParameters(); |
||
90 | $scheme = $this->getScheme(); |
||
91 | |||
92 | return |
||
93 | (empty($scheme) ? '' : $scheme.'://'). |
||
94 | $this->getUserInfoString(). |
||
95 | $this->getHost(). |
||
96 | (empty($this->port) ? '' : ':'.$this->port). |
||
97 | ($this->getPath() ?? ''). |
||
98 | (empty($parameters) ? '' : '?'.http_build_query($parameters)); |
||
99 | } |
||
101 |