Passed
Push — master ( 370c32...80b9cf )
by Vitalii
01:41 queued 31s
created
html/user/forum_forum.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 // show a forum.
27 27
 // $user is null if not logged in
28 28
 //
29
-function forum_page($forum, $user, $msg=null) {
29
+function forum_page($forum, $user, $msg = null) {
30 30
     global $forum_sort_styles;
31 31
 
32 32
     if (DISABLE_FORUMS) {
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
 
54 54
     if (!$sort_style) {
55 55
         // get the sort style either from the logged in user or a cookie
56
-        if ($user){
56
+        if ($user) {
57 57
             $sort_style = $user->prefs->forum_sorting;
58 58
         } else {
59 59
             list($sort_style, $thread_style) = parse_forum_cookie();
60 60
         }
61 61
     } else {
62 62
         // set the sort style
63
-        if ($user){
63
+        if ($user) {
64 64
             $user->prefs->forum_sorting = $sort_style;
65 65
             $user->prefs->update("forum_sorting=$sort_style");
66 66
         } else {
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         echo "<td><a href=\"forum_thread.php?id=$thread->id\">$title</a><br></td>";
249 249
 
250 250
         echo '
251
-            <td>'.($thread->replies+1).'</td>
251
+            <td>'.($thread->replies + 1).'</td>
252 252
             <td>'.user_links($owner, BADGE_HEIGHT_SMALL).'</td>
253 253
             <td>'.$thread->views.'</td>
254 254
             <td>'.time_diff_str($thread->timestamp, time()).'</td>
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         flush();
258 258
     }
259 259
     end_table();
260
-    echo "<br>$page_nav";    // show page links
260
+    echo "<br>$page_nav"; // show page links
261 261
 }
262 262
 
263 263
 $id = get_int("id");
Please login to merge, or discard this patch.