| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 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 | } |
||
| 48 | |||
| 67 |