Test Failed
Push — main ( 1c70d7...b09f12 )
by chief
02:52
created
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/video_helper.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
         shell_exec($fullcmd);
25 25
     }
26 26
 
27
-	public function __construct($conn){
27
+    public function __construct($conn){
28 28
         $this->__db = $conn;
29
-	}
29
+    }
30 30
 
31 31
     function fetch_video_views(string $id) {
32 32
         $stmt = $this->__db->prepare("SELECT * FROM views WHERE videoid = :id");
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.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
 $name = $_GET['v'];
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/delete_video.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
 if($video['author'] == $_SESSION['siteusername']) {
17 17
     $stmt = $__db->prepare("DELETE FROM videos WHERE rid=:rid AND author=:author");
18 18
     $stmt->execute(array(
19
-      ':author' => $video['author'],
20
-      ':rid' => $video['rid'],
19
+        ':author' => $video['author'],
20
+        ':rid' => $video['rid'],
21 21
     ));
22 22
 }
23 23
 
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.
web/public/get/unsubscribe.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
 if($request->error->status == "OK") { 
28 28
     $stmt = $__db->prepare("DELETE FROM subscribers WHERE sender=:sender AND reciever=:reciever");
29 29
     $stmt->execute(array(
30
-      ':sender' => $request->sender,
31
-      ':reciever' => $request->name,
30
+        ':sender' => $request->sender,
31
+        ':reciever' => $request->name,
32 32
     ));
33 33
 } else {
34 34
     echo json_encode($request->error);
Please login to merge, or discard this patch.