Test Setup Failed
Push — master ( 2f545c...eb21ec )
by John
04:37
created
app/Http/Controllers/ContestController.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
         if (!$contestModel->judgeClearance($cid, Auth::user()->id)) {
77 77
             return Redirect::route('contest_detail', ['cid' => $cid]);
78 78
         }
79
-        $contest_name = $contestModel->contestName($cid);
80
-        $problemSet = $contestModel->contestProblems($cid, Auth::user()->id);
81
-        $remainingTime = $contestModel->remainingTime($cid);
82
-        $customInfo = $contestModel->getCustomInfo($cid);
79
+        $contest_name=$contestModel->contestName($cid);
80
+        $problemSet=$contestModel->contestProblems($cid, Auth::user()->id);
81
+        $remainingTime=$contestModel->remainingTime($cid);
82
+        $customInfo=$contestModel->getCustomInfo($cid);
83 83
         if ($remainingTime<=0) {
84 84
             $remainingTime=0;
85 85
         }
@@ -109,10 +109,10 @@  discard block
 block discarded – undo
109 109
         if (!$contestModel->judgeClearance($cid, Auth::user()->id)) {
110 110
             return Redirect::route('contest_detail', ['cid' => $cid]);
111 111
         }
112
-        $contest_name = $contestModel->contestName($cid);
113
-        $contest_ended = $contestModel->isContestEnded($cid);
112
+        $contest_name=$contestModel->contestName($cid);
113
+        $contest_ended=$contestModel->isContestEnded($cid);
114 114
         $pid=$contestModel->getPid($cid, $ncode);
115
-        if(empty($pid)){
115
+        if (empty($pid)) {
116 116
             return Redirect::route('contest_board', ['cid' => $cid]);
117 117
         }
118 118
         $pcode=$problemModel->pcode($pid);
@@ -190,11 +190,11 @@  discard block
 block discarded – undo
190 190
         if (!$contestModel->judgeClearance($cid, Auth::user()->id)) {
191 191
             return Redirect::route('contest_detail', ['cid' => $cid]);
192 192
         }
193
-        $contest_name = $contestModel->contestName($cid);
194
-        $contest_rule = $contestModel->contestRule($cid);
195
-        $problemSet = $contestModel->contestProblems($cid, Auth::user()->id);
196
-        $customInfo = $contestModel->getCustomInfo($cid);
197
-        $contestRank = $contestModel->contestRank($cid, Auth::user()->id);
193
+        $contest_name=$contestModel->contestName($cid);
194
+        $contest_rule=$contestModel->contestRule($cid);
195
+        $problemSet=$contestModel->contestProblems($cid, Auth::user()->id);
196
+        $customInfo=$contestModel->getCustomInfo($cid);
197
+        $contestRank=$contestModel->contestRank($cid, Auth::user()->id);
198 198
         return view('contest.board.rank', [
199 199
             'page_title'=>"Challenge",
200 200
             'navigation' => "Contest",
@@ -219,9 +219,9 @@  discard block
 block discarded – undo
219 219
         if (!$contestModel->judgeClearance($cid, Auth::user()->id)) {
220 220
             return Redirect::route('contest_detail', ['cid' => $cid]);
221 221
         }
222
-        $contest_name = $contestModel->contestName($cid);
223
-        $customInfo = $contestModel->getCustomInfo($cid);
224
-        $clarificationList = $contestModel->getClarificationList($cid);
222
+        $contest_name=$contestModel->contestName($cid);
223
+        $customInfo=$contestModel->getCustomInfo($cid);
224
+        $clarificationList=$contestModel->getClarificationList($cid);
225 225
         return view('contest.board.clarification', [
226 226
             'page_title'=>"Clarification",
227 227
             'navigation' => "Contest",
@@ -244,8 +244,8 @@  discard block
 block discarded – undo
244 244
         if (!$contestModel->judgeClearance($cid, Auth::user()->id)) {
245 245
             return Redirect::route('contest_detail', ['cid' => $cid]);
246 246
         }
247
-        $contest_name = $contestModel->contestName($cid);
248
-        $customInfo = $contestModel->getCustomInfo($cid);
247
+        $contest_name=$contestModel->contestName($cid);
248
+        $customInfo=$contestModel->getCustomInfo($cid);
249 249
         return view('contest.board.print', [
250 250
             'page_title'=>"Print",
251 251
             'navigation' => "Contest",
Please login to merge, or discard this patch.