| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 12 | 2 | public function determineUserAgent(RequestInterface $request, array $options): string |
|
| 13 | { |
||
| 14 | 2 | if (!isset($options[Options::USER_AGENT])) { |
|
| 15 | 1 | throw new InvalidArgumentException('Missing user agent option'); |
|
| 16 | } |
||
| 17 | |||
| 18 | 1 | return $options[Options::USER_AGENT]; |
|
| 19 | } |
||
| 20 | } |
||
| 21 |