Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function normalize($user, $format = null, array $context = []) |
||
24 | { |
||
25 | return [ |
||
26 | 'id' => (int) $user->getId(), |
||
27 | 'username' => (string) $user->getUsername(), |
||
28 | 'profilePicture' => (string) $user->getProfilePicture(), |
||
29 | 'tags' => $this->normalizeTags($user->getTags()), |
||
30 | ]; |
||
31 | } |
||
32 | |||
56 |