| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function transform($profile): array |
||
| 16 | { |
||
| 17 | return [ |
||
| 18 | 'email' => $profile->email, |
||
| 19 | 'name' => $profile->name, |
||
| 20 | 'gender' => $profile->gender ?? 'unknown', |
||
| 21 | 'username' => $profile->nickname ?? 'stranger', |
||
| 22 | 'avatar' => $profile->picture, |
||
| 23 | 'email_verified' => $profile->email_verified, |
||
| 24 | ]; |
||
| 27 |