Test Failed
Push — main ( 0c12e7...ee73bc )
by chief
04:22
created
web/public/results.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,8 +253,9 @@
 block discarded – undo
253 253
                                  </div>
254 254
                               </li>
255 255
                         <?php } ?>
256
-                        <?php if($request->search_amount == 0)
256
+                        <?php if($request->search_amount == 0) {
257 257
                            echo "Your search query has brought no results.<br><br>";
258
+}
258 259
                         ?>
259 260
                      </ol>
260 261
                   </div>
Please login to merge, or discard this patch.
web/public/watch.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -731,10 +731,11 @@
 block discarded – undo
731 731
 														$stmt->execute();
732 732
 
733 733
 														while($comment = $stmt->fetch(PDO::FETCH_ASSOC)) { 
734
-															if($__video_h->if_comment_liked($comment['id'], $_SESSION['siteusername'], true))
735
-																$comment['liked'] = true;
736
-															else if($__video_h->if_comment_liked($comment['id'], $_SESSION['siteusername'], false))
737
-																$comment['disliked'] = true;	
734
+															if($__video_h->if_comment_liked($comment['id'], $_SESSION['siteusername'], true)) {
735
+																															$comment['liked'] = true;
736
+															} else if($__video_h->if_comment_liked($comment['id'], $_SESSION['siteusername'], false)) {
737
+																															$comment['disliked'] = true;
738
+															}
738 739
 													?>
739 740
 
740 741
 													<li class="comment yt-tile-default " data-author-viewing="" data-author-id="-uD01K8FQTeOSS5sniRFzQ" data-id="<?php echo $comment['id']; ?>" data-score="0">
Please login to merge, or discard this patch.
web/public/comment_voting.php 1 patch
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,11 +14,13 @@
 block discarded – undo
14 14
     "action" => "l" /* fallback */
15 15
 ];
16 16
 
17
-if(!isset($_SESSION['siteusername']) || !isset($_GET['id'])) 
18
-    header('Location: ' . $_SERVER['HTTP_REFERER']); 
17
+if(!isset($_SESSION['siteusername']) || !isset($_GET['id'])) {
18
+    header('Location: ' . $_SERVER['HTTP_REFERER']);
19
+}
19 20
 
20
-if(isset($_GET['a']) && $_GET['a'] == "-1") 
21
+if(isset($_GET['a']) && $_GET['a'] == "-1") {
21 22
     $request->action = "d";
23
+}
22 24
 
23 25
 $stmt = $__db->prepare("SELECT * FROM comment_likes WHERE sender = :username AND reciever = :reciever AND type = 'l'");
24 26
 $stmt->bindParam(":username", $_SESSION['siteusername']);
Please login to merge, or discard this patch.