| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | public function index($github_username) |
||
| 48 | { |
||
| 49 | $user = $this->user->where('github_username', '=', $github_username)->first(); |
||
| 50 | |||
| 51 | if (!$user) { |
||
| 52 | return redirect('/'); |
||
| 53 | } |
||
| 54 | |||
| 55 | $prs = $this->checker->getQualifiedPullRequests($user); |
||
| 56 | |||
| 57 | $viewData = compact('user', 'prs'); |
||
| 58 | $viewData['sharingMode'] = $this->sharingMode; |
||
| 59 | |||
| 60 | return view('status', $viewData); |
||
| 61 | } |
||
| 63 |