Passed
Pull Request — master (#5715)
by David
10:23
created
html/user/forum_reply.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     $parent_post_id = 0;
54 54
 }
55 55
 
56
-if ($filter != "false"){
56
+if ($filter != "false") {
57 57
     $filter = true;
58 58
 } else {
59 59
     $filter = false;
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
 }
69 69
 
70 70
 $warning = null;
71
-if ($content && (!$preview)){
72
-    if (post_str('add_signature',true)=="add_it"){
73
-        $add_signature=true;    // set a flag and concatenate later
74
-    }  else {
75
-        $add_signature=false;
71
+if ($content && (!$preview)) {
72
+    if (post_str('add_signature', true) == "add_it") {
73
+        $add_signature = true; // set a flag and concatenate later
74
+    } else {
75
+        $add_signature = false;
76 76
     }
77 77
     check_tokens($logged_in_user->authenticator);
78 78
     if (!akismet_check($logged_in_user, $content)) {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     }
92 92
 }
93 93
 
94
-page_head(tra("Post to thread"),'','','', $bbcode_js);
94
+page_head(tra("Post to thread"), '', '', '', $bbcode_js);
95 95
 
96 96
 show_forum_header($logged_in_user);
97 97
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     $x1 = tra("Message:").bbcode_info().post_warning();
146 146
     $x2 = "";
147 147
     if ($parent_post) {
148
-        $x2 .=" ".tra("reply to %1 Message ID %2:", "<a href=#".$parent_post->id.">", " ".$parent_post->id."</a>");
148
+        $x2 .= " ".tra("reply to %1 Message ID %2:", "<a href=#".$parent_post->id.">", " ".$parent_post->id."</a>");
149 149
     }
150 150
     $x2 .= "<form action=forum_reply.php?thread=".$thread->id;
151 151
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     $x2 .= " method=\"post\" name=\"post\" onsubmit=\"return checkForm(this)\">\n";
157 157
     $x2 .= form_tokens($logged_in_user->authenticator);
158 158
     $x2 .= start_table_str().$bbcode_html.end_table_str()."<textarea class=\"form-control\" name=\"content\" rows=\"18\">";
159
-    $no_quote = get_int("no_quote", true)==1;
159
+    $no_quote = get_int("no_quote", true) == 1;
160 160
     if ($preview) {
161 161
         $x2 .= htmlspecialchars($content);
162 162
     } else if (!$no_quote) {
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
         }
166 166
     }
167 167
     if (!$logged_in_user->prefs->no_signature_by_default) {
168
-        $enable_signature='checked="true"';
168
+        $enable_signature = 'checked="true"';
169 169
     } else {
170
-        $enable_signature="";
170
+        $enable_signature = "";
171 171
     }
172 172
     $x2 .= sprintf('</textarea><p> </p>
173 173
         <input class="btn btn-sm" %s type="submit" name="preview" value="%s">
@@ -191,11 +191,11 @@  discard block
 block discarded – undo
191 191
     return sprintf(
192 192
         'In reply to %s\'s message of %s:
193 193
         [quote]%s[/quote]',
194
-        $user?$user->name:'unknown user',
194
+        $user ? $user->name : 'unknown user',
195 195
         date_str($post->timestamp),
196 196
         htmlspecialchars($post->content)
197 197
     );
198 198
 }
199 199
 
200
-$cvs_version_tracker[]="\$Id$";
200
+$cvs_version_tracker[] = "\$Id$";
201 201
 ?>
Please login to merge, or discard this patch.