| Conditions | 5 |
| Paths | 7 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 28 | public function composeUri($params) |
||
| 29 | { |
||
| 30 | $ret = []; |
||
| 31 | |||
| 32 | foreach ($params as $param => $values) { |
||
| 33 | $internal = $param; |
||
| 34 | if ($external = $this->translateKeyOutput($param)) { |
||
| 35 | $param = $external; |
||
| 36 | } |
||
| 37 | $ret[$param] = []; |
||
| 38 | foreach ($values as $value) { |
||
| 39 | if ($external = $this->translateValueOutput($internal, $value)) { |
||
| 40 | $value = $external; |
||
| 41 | } |
||
| 42 | $ret[$param][]= $value; |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | return http_build_query($ret); |
||
| 47 | } |
||
| 49 |