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; |
||
22 | public function view(UserRepositoryInterface $users) |
||
23 | { |
||
24 | if (!$user = $users->findByUsername($this->route->getParameter('username'))) { |
||
25 | abort(404); |
||
26 | } |
||
27 | |||
28 | return $this->view->make('anomaly.module.users::users/view', compact('user')); |
||
29 | } |
||
30 | } |
||
31 |