Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
36 | public function refreshUser(UserInterface $user) |
||
37 | { |
||
38 | if (!$user instanceof User) { |
||
39 | throw new UnsupportedUserException(sprintf('Invalid user class "%s".', get_class($user))); |
||
40 | } |
||
41 | |||
42 | if (empty($user->getUsername())) { |
||
43 | throw new UnsupportedUserException('Unable to find user\'s Username'); |
||
44 | } |
||
45 | |||
46 | return $user; |
||
47 | } |
||
67 |