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