| @@ 92-102 (lines=11) @@ | ||
| 89 | * @param int $userId |
|
| 90 | * @return AnonymusUserVO|UserVO |
|
| 91 | */ |
|
| 92 | private function loadUser(int $userId) : UserVO |
|
| 93 | { |
|
| 94 | if ($userId > 0) { |
|
| 95 | try { |
|
| 96 | return $this->loadUser->loadUserById($userId); |
|
| 97 | } catch (UserNotFoundException $e) { |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| 101 | return new AnonymusUserVO(); |
|
| 102 | } |
|
| 103 | ||
| 104 | /** |
|
| 105 | * @param Request $request |
|
| @@ 91-102 (lines=12) @@ | ||
| 88 | * @param int $userId |
|
| 89 | * @return AnonymusUserVO|UserVO |
|
| 90 | */ |
|
| 91 | private function loadUser(int $userId) : UserVO |
|
| 92 | { |
|
| 93 | if ($userId > 0) { |
|
| 94 | try { |
|
| 95 | return $this->loadUser->loadUserById($userId); |
|
| 96 | } catch (UserNotFoundException $e) { |
|
| 97 | return new AnonymusUserVO(); |
|
| 98 | } |
|
| 99 | } else { |
|
| 100 | return new AnonymusUserVO(); |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | /** |
|
| 105 | * @param Request $request |
|