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