| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 2 | public static function fromArray($vars) |
|
| 24 | { |
||
| 25 | 2 | $id = new IdentificationRequest; |
|
| 26 | 2 | $id->ip = $vars['REMOTE_ADDR'] ?? null; |
|
| 27 | 2 | $id->referrer = $vars['HTTP_REFERER'] ?? null; |
|
| 28 | 2 | $id->url = $vars['REQUEST_URI'] ?? null; |
|
| 29 | 2 | $id->user_agent = $vars['HTTP_USER_AGENT'] ?? null; |
|
| 30 | 2 | return $id; |
|
| 31 | } |
||
| 32 | |||
| 45 |