| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | private function generateIdentifiersUrl(array $identifiers): array |
||
| 24 | { |
||
| 25 | if (1 === count($identifiers)) { |
||
| 26 | return [rawurlencode(array_values($identifiers)[0])]; |
||
| 27 | } |
||
| 28 | |||
| 29 | foreach ($identifiers as $name => $value) { |
||
| 30 | $identifiers[$name] = sprintf('%s=%s', $name, $value); |
||
| 31 | } |
||
| 32 | |||
| 33 | return $identifiers; |
||
| 34 | } |
||
| 35 | } |
||
| 36 |