| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 2 | protected function fromDevOpsProfile($profile): Profile |
|
| 49 | { |
||
| 50 | 2 | Validator::keysExists($profile, ['id', 'displayName', 'emailAddress']); |
|
| 51 | |||
| 52 | 2 | return new Profile([ |
|
| 53 | 2 | 'id' => $profile['id'], |
|
| 54 | 2 | 'name' => $profile['displayName'], |
|
| 55 | 2 | 'email' => $profile['emailAddress'], |
|
| 56 | 2 | ]); |
|
| 59 |