Passed
Push — master ( b744ba...876400 )
by John
04:00
created
app/Http/Controllers/Contest/BoardController.php 1 patch
Braces   +12 added lines, -10 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         if (!$clearance || time() < strtotime($basicInfo['begin_time'])) {
38 38
             if($clearance == 3){
39 39
                 return Redirect::route('contest.admin', ['cid' => $cid]);
40
-            }else{
40
+            } else{
41 41
                 return Redirect::route('contest.detail', ['cid' => $cid]);
42 42
             }
43 43
         }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         if (!$clearance || time() < strtotime($basicInfo['begin_time'])) {
87 87
             if($clearance == 3){
88 88
                 return Redirect::route('contest.admin', ['cid' => $cid]);
89
-            }else{
89
+            } else{
90 90
                 return Redirect::route('contest.detail', ['cid' => $cid]);
91 91
             }
92 92
         }
@@ -123,7 +123,9 @@  discard block
 block discarded – undo
123 123
         }
124 124
 
125 125
         $editor_left_width = $accountModel->getExtra(Auth::user()->id, 'editor_left_width');
126
-        if(empty($editor_left_width)) $editor_left_width='40';
126
+        if(empty($editor_left_width)) {
127
+            $editor_left_width='40';
128
+        }
127 129
 
128 130
         return view('contest.board.editor', [
129 131
             'page_title'=>"Problem Detail",
@@ -160,7 +162,7 @@  discard block
 block discarded – undo
160 162
         if (!$clearance || time() < strtotime($basicInfo['begin_time'])) {
161 163
             if($clearance == 3){
162 164
                 return Redirect::route('contest.admin', ['cid' => $cid]);
163
-            }else{
165
+            } else{
164 166
                 return Redirect::route('contest.detail', ['cid' => $cid]);
165 167
             }
166 168
         }
@@ -179,10 +181,10 @@  discard block
 block discarded – undo
179 181
             if($i != 0) {
180 182
                 if($r['score'] == $contestRank[$i-1]['score'] && ($contest_rule == 1 ? ($r['penalty'] == $contestRank[$i-1]['penalty']) : 1) ){
181 183
                     $r['rank'] = $contestRank[$i-1]['rank'];
182
-                }else{
184
+                } else{
183 185
                     $r['rank'] = $i + 1;
184 186
                 }
185
-            }else{
187
+            } else{
186 188
                 $r['rank'] = 1;
187 189
             }
188 190
         }
@@ -223,7 +225,7 @@  discard block
 block discarded – undo
223 225
         if (!$clearance || time() < strtotime($basicInfo['begin_time'])) {
224 226
             if($clearance == 3){
225 227
                 return Redirect::route('contest.admin', ['cid' => $cid]);
226
-            }else{
228
+            } else{
227 229
                 return Redirect::route('contest.detail', ['cid' => $cid]);
228 230
             }
229 231
         }
@@ -265,7 +267,7 @@  discard block
 block discarded – undo
265 267
         if (!$clearance || time() < strtotime($basicInfo['begin_time'])) {
266 268
             if($clearance == 3){
267 269
                 return Redirect::route('contest.admin', ['cid' => $cid]);
268
-            }else{
270
+            } else{
269 271
                 return Redirect::route('contest.detail', ['cid' => $cid]);
270 272
             }
271 273
         }
@@ -303,7 +305,7 @@  discard block
 block discarded – undo
303 305
         if (!$clearance || time() < strtotime($basicInfo['begin_time'])) {
304 306
             if($clearance == 3){
305 307
                 return Redirect::route('contest.admin', ['cid' => $cid]);
306
-            }else{
308
+            } else{
307 309
                 return Redirect::route('contest.detail', ['cid' => $cid]);
308 310
             }
309 311
         }
@@ -331,7 +333,7 @@  discard block
 block discarded – undo
331 333
         if (!$clearance || time() < strtotime($basicInfo['begin_time'])) {
332 334
             if($clearance == 3){
333 335
                 return Redirect::route('contest.admin', ['cid' => $cid]);
334
-            }else{
336
+            } else{
335 337
                 return Redirect::route('contest.detail', ['cid' => $cid]);
336 338
             }
337 339
         }
Please login to merge, or discard this patch.