@@ -9,9 +9,9 @@ |
||
| 9 | 9 | { |
| 10 | 10 | public function handle($request, Closure $next) |
| 11 | 11 | { |
| 12 | - $contest = Contest::find($request->cid); |
|
| 12 | + $contest=Contest::find($request->cid); |
|
| 13 | 13 | |
| 14 | - if(blank($contest)) { |
|
| 14 | + if (blank($contest)) { |
|
| 15 | 15 | return redirect()->route('contest.index'); |
| 16 | 16 | } |
| 17 | 17 | |
@@ -70,10 +70,10 @@ |
||
| 70 | 70 | if (Auth::check()) { |
| 71 | 71 | $contest_detail=$contestModel->detail($cid, Auth::user()->id); |
| 72 | 72 | $registration=$contestModel->registration($cid, Auth::user()->id); |
| 73 | - if(filled($contest_detail["data"])) { |
|
| 73 | + if (filled($contest_detail["data"])) { |
|
| 74 | 74 | $inGroup=$groupModel->isMember($contest_detail["data"]["contest_detail"]["gid"], Auth::user()->id); |
| 75 | 75 | } else { |
| 76 | - $inGroup = false; |
|
| 76 | + $inGroup=false; |
|
| 77 | 77 | } |
| 78 | 78 | } else { |
| 79 | 79 | $contest_detail=$contestModel->detail($cid); |