| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 1 | public function appendQueryParameters(UriInterface $uri, array $parameters = []) |
|
| 48 | { |
||
| 49 | 1 | parse_str($uri->getQuery(), $existedParameters); |
|
| 50 | |||
| 51 | 1 | $mergedParameters = array_merge($existedParameters, $parameters); |
|
| 52 | |||
| 53 | 1 | return $uri->withQuery(http_build_query($mergedParameters)); |
|
| 54 | } |
||
| 55 | |||
| 70 |