| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function index(PullRequestChecker $checker, $github_username) |
||
| 19 | { |
||
| 20 | $user = User::where('github_username', '=', $github_username)->first(); |
||
| 21 | |||
| 22 | if (!$user) { |
||
| 23 | return redirect('/'); |
||
| 24 | } |
||
| 25 | |||
| 26 | $prs = $checker->getQualifiedPullRequests($user); |
||
| 27 | |||
| 28 | return view('status', compact('user', 'prs')); |
||
| 29 | } |
||
| 31 |