Passed
Push — main ( b78c1f...17bea0 )
by chief
34s queued 12s
created
watch.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -423,7 +423,8 @@  discard block
 block discarded – undo
423 423
 														$stmt->bindParam(":pper", $results_per_page);
424 424
 														$stmt->execute();
425 425
 
426
-														while($comment = $stmt->fetch(PDO::FETCH_ASSOC))) { 
426
+														while($comment = $stmt->fetch(PDO::FETCH_ASSOC)) {
427
+														    ) { 
427 428
 													?>
428 429
 
429 430
 													<li class="comment yt-tile-default " data-author-viewing="" data-author-id="-uD01K8FQTeOSS5sniRFzQ" data-id="HdQrMeklJ_5hd_uPDRcvtdaMk2pMVS8d9sufcfiGx0U" data-score="0">
@@ -431,7 +432,9 @@  discard block
 block discarded – undo
431 432
 															<div class="content-container">
432 433
 																<div class="content">
433 434
 																	<div class="comment-text" dir="ltr">
434
-																		<p><?php echo $__video_h->shorten_description($comment['comment'], 3000, true); ?></p>
435
+																		<p><?php echo $__video_h->shorten_description($comment['comment'], 3000, true);
436
+														}
437
+														?></p>
435 438
 																	</div>
436 439
 																	<p class="metadata">
437 440
 																		<span class="author ">
Please login to merge, or discard this patch.
playlists.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,9 @@
 block discarded – undo
27 27
         $stmt->bindParam(":username", $_SESSION['siteusername']);
28 28
         $characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_';
29 29
         $result = '';
30
-        for ($i = 0; $i < 11; $i++)
31
-            $rid .= $characters[mt_rand(0, 63)];
30
+        for ($i = 0; $i < 11; $i++) {
31
+                    $rid .= $characters[mt_rand(0, 63)];
32
+        }
32 33
         $text = htmlspecialchars($_POST['comment']);
33 34
         $stmt->execute();
34 35
         $__user_u->update_cooldown_time($_SESSION['siteusername'], "cooldown_comment");
Please login to merge, or discard this patch.
d/post/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.
s/classes/video_helper.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,14 +12,22 @@
 block discarded – undo
12 12
 
13 13
     public function sh_exec(string $cmd, string $outputfile = "", string $pidfile = "", bool $mergestderror = true, bool $bg = false) {
14 14
         $fullcmd = $cmd;
15
-        if(strlen($outputfile) > 0) $fullcmd .= " >> " . $outputfile;
16
-        if($mergestderror) $fullcmd .= " 2>&1";
15
+        if(strlen($outputfile) > 0) {
16
+            $fullcmd .= " >> " . $outputfile;
17
+        }
18
+        if($mergestderror) {
19
+            $fullcmd .= " 2>&1";
20
+        }
17 21
         
18 22
         if($bg) {
19 23
             $fullcmd = "nohup " . $fullcmd . " &";
20
-            if(strlen($pidfile)) $fullcmd .= " echo $! > " . $pidfile;
24
+            if(strlen($pidfile)) {
25
+                $fullcmd .= " echo $! > " . $pidfile;
26
+            }
21 27
         } else {
22
-            if(strlen($pidfile) > 0) $fullcmd .= "; echo $$ > " . $pidfile;
28
+            if(strlen($pidfile) > 0) {
29
+                $fullcmd .= "; echo $$ > " . $pidfile;
30
+            }
23 31
         }
24 32
         shell_exec($fullcmd);
25 33
     }
Please login to merge, or discard this patch.
s/classes/config.inc.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
                         ]
39 39
                         );
40 40
         $__server->db_properties->db_connected = true;
41
-    }
42
-    catch(PDOException $e)
41
+    } catch(PDOException $e)
43 42
     {
44 43
         $__server->db_properties->db_connected = false;
45 44
         // wtf is the point of this? cant you just vomit out the error? why?????????????
Please login to merge, or discard this patch.