| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 19 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 9 | protected function getClient()  | 
            ||
| 10 |     { | 
            ||
| 11 |         if (class_exists('\Jenssegers\Agent\Agent')) { | 
            ||
| 12 | $agent = new \Jenssegers\Agent\Agent();  | 
            ||
| 13 | |||
| 14 | $platform = $agent->platform();  | 
            ||
| 15 | $browser = $agent->browser();  | 
            ||
| 16 | |||
| 17 | return [  | 
            ||
| 18 | 'device' => $agent->device(),  | 
            ||
| 19 | 'platform' => $platform . ' ' . $agent->version($platform),  | 
            ||
| 20 | 'browser' => $browser . ' ' . $agent->version($browser),  | 
            ||
| 21 | ];  | 
            ||
| 22 | }  | 
            ||
| 23 | |||
| 24 | return [  | 
            ||
| 25 |             'agent' => request()->server('HTTP_USER_AGENT'), | 
            ||
| 26 | ];  | 
            ||
| 27 | }  | 
            ||
| 28 | }  | 
            ||
| 29 |