| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 61 | protected function buildQueryArray(string $name, array $value) |
||
| 62 | { |
||
| 63 | $name = rawurlencode($name); |
||
| 64 | |||
| 65 | return collect($value)->map(function ($value, $key) use ($name) { |
||
| 66 | if (is_string($key)) { |
||
| 67 | $key = rawurlencode($key); |
||
| 68 | |||
| 69 | return "{$name}[$key]=" . rawurlencode($value); |
||
| 70 | } |
||
| 71 | |||
| 72 | return "{$name}[]=" . rawurlencode($value); |
||
| 73 | })->implode('&'); |
||
| 74 | } |
||
| 76 |