| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 32 | 1 | public function getUri(): string |
|
| 33 | { |
||
| 34 | 1 | $queryString = $this->request->server->get('QUERY_STRING'); |
|
| 35 | 1 | if (!empty($queryString)) { |
|
| 36 | 1 | $queryString = '?' . $queryString; |
|
| 37 | } |
||
| 38 | |||
| 39 | 1 | return $this->request->getSchemeAndHttpHost() |
|
| 40 | 1 | . $this->request->getBaseUrl() . $this->request->getPathInfo() . $queryString; |
|
| 41 | } |
||
| 42 | |||
| 53 |