| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Anomaly\UsersModule\Http\Controller; |
||
| 21 | public function view(UserRepositoryInterface $users) |
||
| 22 | { |
||
| 23 | if (!$user = $users->findByUsername($this->route->getParameter('username'))) { |
||
| 24 | abort(404); |
||
| 25 | } |
||
| 26 | |||
| 27 | return $this->view->make('anomaly.module.users::users/view', compact('user')); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |