| Conditions | 4 |
| Paths | 6 |
| Total Lines | 15 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 19 | private function createUriString( |
|
| 32 | string $scheme, |
||
| 33 | string $authority, |
||
| 34 | string $path, |
||
| 35 | string $query, |
||
| 36 | string $fragment |
||
| 37 | ) : string |
||
| 38 | { |
||
| 39 | 19 | $uri = $scheme.$authority; |
|
| 40 | |||
| 41 | 19 | $uri .= ('/' !== substr($path, 0, 1) && $uri !== '' && $path !== '') ? '/'.$path : $path; |
|
| 42 | |||
| 43 | 19 | $uri .= $query.$fragment; |
|
| 44 | |||
| 45 | 19 | return $uri; |
|
| 46 | } |
||
| 95 |