| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function index(PullRequestChecker $checker, $github_username) |
||
| 11 | { |
||
| 12 | $user = User::where('github_username', '=', $github_username)->first(); |
||
| 13 | |||
| 14 | if (!$user) { |
||
| 15 | return redirect('/'); |
||
| 16 | } |
||
| 17 | |||
| 18 | $prs = $checker->getQualifiedPullRequests($user); |
||
| 19 | |||
| 20 | return view('status', compact('user', 'prs')); |
||
| 21 | } |
||
| 23 |