Test Failed
Pull Request — main (#32)
by
unknown
02:53
created
web/public/my_videos.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -224,10 +224,11 @@
 block discarded – undo
224 224
                                                 $status = "Unknown";
225 225
                                             }                      
226 226
                                             
227
-                                            if($video['commenting'] == "a") 
228
-                                                $video['commentstatus'] = "Commenting allowed";
229
-                                            else 
230
-                                                $video['commentstatus'] = "Commenting disallowed";
227
+                                            if($video['commenting'] == "a") {
228
+                                                                                            $video['commentstatus'] = "Commenting allowed";
229
+                                            } else {
230
+                                                                                            $video['commentstatus'] = "Commenting disallowed";
231
+                                            }
231 232
                                     ?> 
232 233
                                     <tr style="margin-top: 5px;" id="videoslist">
233 234
                                         <td class="video-manager-left">
Please login to merge, or discard this patch.
web/public/favorite_ajax.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,10 +83,11 @@
 block discarded – undo
83 83
                     $status = "Unknown";
84 84
                 }                      
85 85
                 
86
-                if($_video['commenting'] == "a") 
87
-                    $_video['commentstatus'] = "Commenting allowed";
88
-                else 
89
-                    $_video['commentstatus'] = "Commenting disallowed";
86
+                if($_video['commenting'] == "a") {
87
+                                    $_video['commentstatus'] = "Commenting allowed";
88
+                } else {
89
+                                    $_video['commentstatus'] = "Commenting disallowed";
90
+                }
90 91
     ?> 
91 92
     <tr style="margin-top: 5px;" id="videoslist">
92 93
         <td class="video-manager-left">
Please login to merge, or discard this patch.
web/public/d/login.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@
 block discarded – undo
33 33
 
34 34
         $row = $stmt->fetch(PDO::FETCH_ASSOC);
35 35
         if(!isset($row['password'])) 
36
-            { $request->error->message = "Incorrect username or password!"; $request->error->status = ""; } 
37
-        else 
36
+            { $request->error->message = "Incorrect username or password!"; $request->error->status = ""; } else 
38 37
             { $request->returned_password = $row['password']; }
39 38
 
40 39
         if(!password_verify($request->password, $request->returned_password)) 
Please login to merge, or discard this patch.
web/public/d/upload.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,9 @@
 block discarded – undo
11 11
 <?php
12 12
     $rid = "";
13 13
     $characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_';
14
-    for ($i = 0; $i < 11; $i++)
15
-        $rid .= $characters[mt_rand(0, 63)];
14
+    for ($i = 0; $i < 11; $i++) {
15
+            $rid .= $characters[mt_rand(0, 63)];
16
+    }
16 17
 
17 18
     $video_properties = (object) [
18 19
         'video_rid' => $rid,
Please login to merge, or discard this patch.
web/public/s/classes/time_manip.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,10 +58,14 @@
 block discarded – undo
58 58
         }
59 59
     
60 60
         if(!isset($cLang)) {
61
-            if (!$full) $string = array_slice($string, 0, 1);
61
+            if (!$full) {
62
+                $string = array_slice($string, 0, 1);
63
+            }
62 64
             return $string ? implode(', ', $string) . ' ago' : 'just now';
63 65
         } else {
64
-            if (!$full) $string = array_slice($string, 0, 1);
66
+            if (!$full) {
67
+                $string = array_slice($string, 0, 1);
68
+            }
65 69
             return $string ? implode($cLang['agoLeft'], $string) . " " . " " . $cLang['agoRight'] : $cLang['justNow'];
66 70
         }
67 71
     }
Please login to merge, or discard this patch.
web/public/get/add_friend.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,15 +10,18 @@
 block discarded – undo
10 10
 <?php $__time_h = new time_helper(); ?>
11 11
 <?php
12 12
 
13
-if($_SESSION['siteusername'] == $_GET['sending'])
13
+if($_SESSION['siteusername'] == $_GET['sending']) {
14 14
     die("You can't friend yourself!");
15
+}
15 16
 
16 17
 $stmt = $conn->prepare("SELECT * FROM friends WHERE sender = ? AND reciever = ?");
17 18
 $stmt->bind_param("ss", $_SESSION['siteusername'], $_GET['sending']);
18 19
     $stmt->execute();
19 20
     $result = $stmt->get_result();
20
-    if($result->num_rows === 1) die('You already sent a friend request to this person');
21
-$stmt->close();
21
+    if($result->num_rows === 1) {
22
+        die('You already sent a friend request to this person');
23
+    }
24
+    $stmt->close();
22 25
 
23 26
 $stmt = $conn->prepare("INSERT INTO friends (sender, reciever, status) VALUES (?, ?, 'u')");
24 27
 $stmt->bind_param("ss", $_SESSION['siteusername'], $_GET['sending']);
Please login to merge, or discard this patch.
web/public/get/unblock.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,10 @@
 block discarded – undo
25 25
 $stmt->bind_param("ss", $_SESSION['siteusername'], $name);
26 26
     $stmt->execute();
27 27
     $result = $stmt->get_result();
28
-    if($result->num_rows === 0) die('You haven\'t blocked this person!');
29
-$stmt->close();
28
+    if($result->num_rows === 0) {
29
+        die('You haven\'t blocked this person!');
30
+    }
31
+    $stmt->close();
30 32
 
31 33
 $stmt = $conn->prepare("DELETE FROM block WHERE sender = ? AND reciever = ?");
32 34
 $stmt->bind_param("ss", $_SESSION['siteusername'], $name);
Please login to merge, or discard this patch.
web/public/get/block.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,10 @@
 block discarded – undo
24 24
 $stmt->bind_param("ss", $_SESSION['siteusername'], $name);
25 25
     $stmt->execute();
26 26
     $result = $stmt->get_result();
27
-    if($result->num_rows === 1) die('You already blocked this person!');
28
-$stmt->close();
27
+    if($result->num_rows === 1) {
28
+        die('You already blocked this person!');
29
+    }
30
+    $stmt->close();
29 31
 
30 32
 $stmt = $conn->prepare("INSERT INTO block (sender, reciever) VALUES (?, ?)");
31 33
 $stmt->bind_param("ss", $_SESSION['siteusername'], $name);
Please login to merge, or discard this patch.
web/public/video_manager_ajax.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,10 +85,11 @@
 block discarded – undo
85 85
                 $status = "Unknown";
86 86
             }                      
87 87
             
88
-            if($video['commenting'] == "a") 
89
-                $video['commentstatus'] = "Commenting allowed";
90
-            else 
91
-                $video['commentstatus'] = "Commenting disallowed";
88
+            if($video['commenting'] == "a") {
89
+                            $video['commentstatus'] = "Commenting allowed";
90
+            } else {
91
+                            $video['commentstatus'] = "Commenting disallowed";
92
+            }
92 93
     ?> 
93 94
     <tr style="margin-top: 5px;" id="videoslist">
94 95
         <td class="video-manager-left">
Please login to merge, or discard this patch.