Passed
Branch master (66eec9)
by Cody
03:07 queued 01:22
created
functions/display_messages.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@
 block discarded – undo
15 15
     }
16 16
     if (isset($display_messages) && $display_messages != "") {
17 17
       $msg = $display_messages;
18
-    } else {
18
+    }else {
19 19
       $msg = "something's wrong, this nerve is either empty or our brain doesn't have access to this nerve's messages...";
20 20
     }
21 21
 
22 22
     if ($action == "messages") {
23 23
       $result = $msg;
24
-    } else if ($action == "last_msg") {
24
+    }else if ($action == "last_msg") {
25 25
       $result = $last_msg;
26
-    } else {
26
+    }else {
27 27
       $result = "show_messages: parameters <b>must</b> be either 'messages' or 'last_msg'";
28 28
     }
29 29
 
Please login to merge, or discard this patch.
functions/post_messages.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         $check = getimagesize($_FILES["file"]["tmp_name"]);
16 16
         if ($check !== false) {
17 17
           $uploadOk = 1;
18
-        } else {
18
+        }else {
19 19
           echo "what are you doing anon? that file was not an image or a webm...";
20 20
           $uploadOk = 0;
21 21
         }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         // Upload the file
36 36
         if ($uploadOk == 0) {
37 37
             echo "Sorry, your file was not uploaded.";
38
-        } else {
38
+        }else {
39 39
             move_uploaded_file($_FILES["file"]["tmp_name"], $target_file);
40 40
         }
41 41
       }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
       array_push($messages["messages"], $new_message);
59 59
       $jsondata = json_encode($messages, JSON_PRETTY_PRINT);
60 60
       file_put_contents($file, $jsondata);
61
-    } else {
61
+    }else {
62 62
       echo "The message field is <b>required</b>.";
63 63
     }
64 64
   }
Please login to merge, or discard this patch.