Test Failed
Pull Request — main (#32)
by
unknown
02:53
created
web/public/guide_ajax.php 2 patches
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.
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.
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/video_updater.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 video_updater {
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 update_row($video, $rowName, $new) {
18 18
         $stmt = $this->__db->prepare("UPDATE videos SET ".$rowName." = :new WHERE rid = :rid");
Please login to merge, or discard this patch.
web/public/s/classes/db_helper.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@
 block discarded – undo
10 10
 *
11 11
 **/
12 12
 class db_helper {
13
-	public function __construct(){
13
+    public function __construct(){
14 14
       
15
-	}
15
+    }
16 16
 
17
-  function fetch(string $table, array $where, string $extra) {
17
+    function fetch(string $table, array $where, string $extra) {
18 18
 
19
-  }
19
+    }
20 20
 }
21 21
 
22 22
 ?>
23 23
\ No newline at end of file
Please login to merge, or discard this patch.
web/public/get/dislike_comment.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -5,17 +5,17 @@
 block discarded – undo
5 5
 <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/static/lib/new/fetch.php"); ?>
6 6
 <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/static/lib/new/insert.php"); ?>
7 7
 <?php
8
-  $_user_fetch_utils = new user_fetch_utils();
9
-  $_user_insert_utils = new user_insert_utils();
10
-  $_video_fetch_utils = new video_fetch_utils();
11
-  $_user_delete_utils = new user_delete_utils();
12
-  $_base_utils = new config_setup();
8
+    $_user_fetch_utils = new user_fetch_utils();
9
+    $_user_insert_utils = new user_insert_utils();
10
+    $_video_fetch_utils = new video_fetch_utils();
11
+    $_user_delete_utils = new user_delete_utils();
12
+    $_base_utils = new config_setup();
13 13
  
14
-  $_base_utils->initialize_db_var($conn);
15
-  $_video_fetch_utils->initialize_db_var($conn);
16
-  $_user_insert_utils->initialize_db_var($conn);
17
-  $_user_fetch_utils->initialize_db_var($conn);
18
-  $_user_delete_utils->initialize_db_var($conn);
14
+    $_base_utils->initialize_db_var($conn);
15
+    $_video_fetch_utils->initialize_db_var($conn);
16
+    $_user_insert_utils->initialize_db_var($conn);
17
+    $_user_fetch_utils->initialize_db_var($conn);
18
+    $_user_delete_utils->initialize_db_var($conn);
19 19
 ?>
20 20
 <?php
21 21
 $name = $_GET['id'];
Please login to merge, or discard this patch.
web/public/get/star.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@
 block discarded – undo
4 4
 <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/static/lib/new/fetch.php"); ?>
5 5
 <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/static/lib/new/insert.php"); ?>
6 6
 <?php
7
-  $_user_fetch_utils = new user_fetch_utils();
8
-  $_user_insert_utils = new user_insert_utils();
9
-  $_video_fetch_utils = new video_fetch_utils();
10
-  $_base_utils = new config_setup();
7
+    $_user_fetch_utils = new user_fetch_utils();
8
+    $_user_insert_utils = new user_insert_utils();
9
+    $_video_fetch_utils = new video_fetch_utils();
10
+    $_base_utils = new config_setup();
11 11
  
12
-  $_base_utils->initialize_db_var($conn);
13
-  $_video_fetch_utils->initialize_db_var($conn);
14
-  $_user_insert_utils->initialize_db_var($conn);
15
-  $_user_fetch_utils->initialize_db_var($conn);
12
+    $_base_utils->initialize_db_var($conn);
13
+    $_video_fetch_utils->initialize_db_var($conn);
14
+    $_user_insert_utils->initialize_db_var($conn);
15
+    $_user_fetch_utils->initialize_db_var($conn);
16 16
 ?>
17 17
 <?php
18 18
 session_start();
Please login to merge, or discard this patch.
web/public/get/report.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@
 block discarded – undo
2 2
 <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/static/lib/new/base.php"); ?>
3 3
 <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/static/lib/new/fetch.php"); ?>
4 4
 <?php
5
-  $_user_fetch_utils = new user_fetch_utils();
6
-  $_video_fetch_utils = new video_fetch_utils();
7
-  $_base_utils = new config_setup();
5
+    $_user_fetch_utils = new user_fetch_utils();
6
+    $_video_fetch_utils = new video_fetch_utils();
7
+    $_base_utils = new config_setup();
8 8
  
9
-  $_base_utils->initialize_db_var($conn);
10
-  $_video_fetch_utils->initialize_db_var($conn);
11
-  $_user_fetch_utils->initialize_db_var($conn);
9
+    $_base_utils->initialize_db_var($conn);
10
+    $_video_fetch_utils->initialize_db_var($conn);
11
+    $_user_fetch_utils->initialize_db_var($conn);
12 12
 
13
-  $_video = $_video_fetch_utils->fetch_video_rid($_GET['v']);
13
+    $_video = $_video_fetch_utils->fetch_video_rid($_GET['v']);
14 14
 ?>
15 15
 <?php
16 16
 //=======================================================================================================
Please login to merge, or discard this patch.