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.
guide_ajax.php 1 patch
Switch Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -13,73 +13,73 @@
 block discarded – undo
13 13
 <?php
14 14
     if(!isset($_GET['action_load_user_feed'])) {
15 15
         switch(@$_GET['chart_name']) {
16
-        case "trending":
17
-            $category = 'Trending';
18
-            $diviconn = 'trending';
19
-            break;
20
-        case "popular":
21
-            $category = 'Popular';
22
-            $diviconn = 'popular';
23
-            break;
24
-        case "music":
25
-            $category = 'Music';
26
-            $diviconn = 'music';
27
-            break;
28
-        case "entertainment":
29
-            $category = 'Entertainment';
30
-            $diviconn = 'entertainment';
31
-            break;
32
-        case "sports":
33
-            $category = 'Sports';
34
-            $diviconn = 'sports';
35
-            break;
36
-        case "comedy":
37
-            $category = 'Comedy';
38
-            $diviconn = 'comedy';
39
-            break;
40
-        case "film":
41
-            $category = 'Film & Animation';
42
-            $diviconn = 'film';
43
-            break;
44
-        case "gadgets":
45
-            $category = 'Gaming';
46
-            $diviconn = 'gadgets';
47
-            break;
16
+            case "trending":
17
+                $category = 'Trending';
18
+                $diviconn = 'trending';
19
+                break;
20
+            case "popular":
21
+                $category = 'Popular';
22
+                $diviconn = 'popular';
23
+                break;
24
+            case "music":
25
+                $category = 'Music';
26
+                $diviconn = 'music';
27
+                break;
28
+            case "entertainment":
29
+                $category = 'Entertainment';
30
+                $diviconn = 'entertainment';
31
+                break;
32
+            case "sports":
33
+                $category = 'Sports';
34
+                $diviconn = 'sports';
35
+                break;
36
+            case "comedy":
37
+                $category = 'Comedy';
38
+                $diviconn = 'comedy';
39
+                break;
40
+            case "film":
41
+                $category = 'Film & Animation';
42
+                $diviconn = 'film';
43
+                break;
44
+            case "gadgets":
45
+                $category = 'Gaming';
46
+                $diviconn = 'gadgets';
47
+                break;
48 48
         }
49 49
         
50 50
         switch(@$_GET['feed_name']) {
51
-        case "trending":
52
-            $category = 'Trending';
53
-            $diviconn = 'trending';
54
-            break;
55
-        case "popular":
56
-            $category = 'Popular';
57
-            $diviconn = 'popular';
58
-            break;
59
-        case "music":
60
-            $category = 'Music';
61
-            $diviconn = 'music';
62
-            break;
63
-        case "entertainment":
64
-            $category = 'Entertainment';
65
-            $diviconn = 'entertainment';
66
-            break;
67
-        case "sports":
68
-            $category = 'Sports';
69
-            $diviconn = 'sports';
70
-            break;
71
-        case "comedy":
72
-            $category = 'Comedy';
73
-            $diviconn = 'comedy';
74
-            break;
75
-        case "film":
76
-            $category = 'Film & Animation';
77
-            $diviconn = 'film';
78
-            break;
79
-        case "gadgets":
80
-            $category = 'Gaming';
81
-            $diviconn = 'gadgets';
82
-            break;
51
+            case "trending":
52
+                $category = 'Trending';
53
+                $diviconn = 'trending';
54
+                break;
55
+            case "popular":
56
+                $category = 'Popular';
57
+                $diviconn = 'popular';
58
+                break;
59
+            case "music":
60
+                $category = 'Music';
61
+                $diviconn = 'music';
62
+                break;
63
+            case "entertainment":
64
+                $category = 'Entertainment';
65
+                $diviconn = 'entertainment';
66
+                break;
67
+            case "sports":
68
+                $category = 'Sports';
69
+                $diviconn = 'sports';
70
+                break;
71
+            case "comedy":
72
+                $category = 'Comedy';
73
+                $diviconn = 'comedy';
74
+                break;
75
+            case "film":
76
+                $category = 'Film & Animation';
77
+                $diviconn = 'film';
78
+                break;
79
+            case "gadgets":
80
+                $category = 'Gaming';
81
+                $diviconn = 'gadgets';
82
+                break;
83 83
         }
84 84
 
85 85
         $stmt = $__db->prepare("SELECT * FROM videos WHERE category = :category ORDER BY id DESC LIMIT 20");
Please login to merge, or discard this patch.