| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | 1 | public function parse(string $userAgent): UserAgent |
|
| 10 | { |
||
| 11 | [ |
||
| 12 | 1 | 'browser' => $browserName, |
|
| 13 | 1 | 'version' => $browserVersion, |
|
| 14 | 1 | 'platform' => $platform, |
|
| 15 | ] |
||
| 16 | 1 | = \parse_user_agent($userAgent); |
|
| 17 | |||
| 18 | 1 | return UserAgent::create((string) $browserName, (string) $browserVersion, (string) $platform); |
|
| 19 | } |
||
| 20 | } |
||
| 21 |