| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function index() |
||
| 35 | { |
||
| 36 | if (!Auth::check()) { |
||
| 37 | return view('index'); |
||
| 38 | } |
||
| 39 | |||
| 40 | $user = Auth::user(); |
||
| 41 | $prs = $this->checker->getQualifiedPullRequests($user); |
||
| 42 | |||
| 43 | $message = "I'm about to start hacking for Hacktoberfest!"; |
||
| 44 | |||
| 45 | if ($prs->total_count > 0) { |
||
| 46 | $message = "I've completed $prs->total_count pull requests for Hacktoberfest!"; |
||
| 47 | } |
||
| 48 | |||
| 49 | $viewData = compact('user', 'prs', 'message'); |
||
| 50 | $viewData['sharingMode'] = $this->sharingMode; |
||
| 51 | |||
| 52 | return view('status', $viewData); |
||
| 53 | } |
||
| 55 |