Test Failed
Pull Request — main (#32)
by
unknown
02:53
created
web/public/my_videos.php 2 patches
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.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 <?php $__db_h = new db_helper(); ?>
9 9
 <?php $__time_h = new time_helper(); ?>
10 10
 <?php
11
-	$__server->page_embeds->page_title = "SubRocks - My Videos";
12
-	$__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
13
-	$__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
14
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
11
+    $__server->page_embeds->page_title = "SubRocks - My Videos";
12
+    $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
13
+    $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
14
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
15 15
 ?>
16 16
 <?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
17 17
 <!DOCTYPE html>
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/guide_ajax.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
         $stmt->bindParam(":username", $username);
94 94
         $stmt->execute();
95 95
     }
96
-	?>
96
+    ?>
97 97
 {'paging': null, 'feed_html': `
98 98
 <div class=\'feed-header no-metadata\'>
99 99
 	<div class=\'feed-header-thumb\'>
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/user_insert.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 class user_insert {
11 11
     public $__db;
12 12
 
13
-	public function __construct($conn){
13
+    public function __construct($conn){
14 14
         $this->__db = $conn;
15
-	}
15
+    }
16 16
 
17 17
     function check_view_channel($vidid, $user) {
18 18
         $stmt = $this->__db->prepare("SELECT * FROM channel_views WHERE viewer = :user AND channel = :vidid");
Please login to merge, or discard this patch.
web/public/s/classes/user_helper.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 class user_helper {
12 12
     public $__db;
13 13
 
14
-	public function __construct($conn){
14
+    public function __construct($conn){
15 15
         $this->__db = $conn;
16
-	}
16
+    }
17 17
 
18 18
     function fetch_pfp($username) {
19 19
         $stmt = $this->__db->prepare("SELECT pfp FROM users WHERE username = :username");
Please login to merge, or discard this patch.
web/public/s/classes/user_update.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 class user_update {
11 11
     public $__db;
12 12
 
13
-	public function __construct($conn){
13
+    public function __construct($conn){
14 14
         $this->__db = $conn;
15
-	}
15
+    }
16 16
 
17 17
     // fuck this, this can be compressed into 2 functions
18 18
 
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.