| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function profile(Request $request, UserRepository $userRepository): Response |
||
| 36 | { |
||
| 37 | $login = $request->getAttribute('login', null); |
||
| 38 | $item = $userRepository->findByLogin($login); |
||
| 39 | if ($item === null) { |
||
| 40 | return $this->responseFactory->createResponse(404); |
||
|
|
|||
| 41 | } |
||
| 42 | |||
| 43 | return $this->viewRenderer->render('profile', ['item' => $item]); |
||
| 44 | } |
||
| 46 |