| Conditions | 4 |
| Paths | 5 |
| Total Lines | 18 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | public function getRequestTarget() |
||
| 58 | { |
||
| 59 | |||
| 60 | if ($this->requestTarget) { |
||
| 61 | return $this->requestTarget; |
||
| 62 | } |
||
| 63 | |||
| 64 | $target = $this->uri->getPath(); |
||
| 65 | |||
| 66 | if ($target === '') { |
||
| 67 | $target .= '/'; |
||
| 68 | } |
||
| 69 | |||
| 70 | if ($this->uri->getQuery()) { |
||
| 71 | $target .= '?' . $this->uri->getQuery(); |
||
| 72 | } |
||
| 73 | |||
| 74 | return $target; |
||
| 75 | } |
||
| 125 |