Passed
Push — master ( 77ba77...a19bd1 )
by Cody
01:48
created
functions/post_messages.php 1 patch
Spacing   +4 added lines, -4 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,12 +58,12 @@  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
   }
65 65
 
66
-  function greenText($msg){
66
+  function greenText($msg) {
67 67
     preg_match_all('/(?<!&gt;)&gt;(?!&gt;).*/', $msg, $matches, PREG_SET_ORDER, 0);
68 68
 
69 69
     foreach ($matches as $m) {
Please login to merge, or discard this patch.