Test Failed
Push — main ( 9f2608...2c26f6 )
by chief
03:31
created
web/public/index.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 		$dif['idle'] = $info2[3] - $info1[3]; 
27 27
 		$total = array_sum($dif); 
28 28
 		$cpu = array(); 
29
-		foreach($dif as $x=>$y) $cpu[$x] = round($y / $total * 100, 1);
29
+		foreach($dif as $x=>$y) {
30
+		    $cpu[$x] = round($y / $total * 100, 1);
31
+		}
30 32
 
31 33
 		return $cpu;
32 34
 	}
Please login to merge, or discard this patch.
web/public/admin/index.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,9 @@
 block discarded – undo
30 30
 		$dif['idle'] = $info2[3] - $info1[3]; 
31 31
 		$total = array_sum($dif); 
32 32
 		$cpu = array(); 
33
-		foreach($dif as $x=>$y) $cpu[$x] = round($y / $total * 100, 1);
33
+		foreach($dif as $x=>$y) {
34
+		    $cpu[$x] = round($y / $total * 100, 1);
35
+		}
34 36
 
35 37
 		return $cpu;
36 38
 	}
Please login to merge, or discard this patch.
web/public/comment_service_ajax.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,9 @@
 block discarded – undo
31 31
         $stmt->execute();
32 32
 
33 33
         $__user_u->update_cooldown_time($_SESSION['siteusername'], "cooldown_comment");
34
-        if(@$_SESSION['siteusername'] != $_video['author'])
35
-            $__user_i->send_message($_SESSION['siteusername'], "New comment", $_video['author'], "I commented \"" . $_POST['comment'] . "\" on your video!", $_video['rid'], "nt");
34
+        if(@$_SESSION['siteusername'] != $_video['author']) {
35
+                    $__user_i->send_message($_SESSION['siteusername'], "New comment", $_video['author'], "I commented \"" . $_POST['comment'] . "\" on your video!", $_video['rid'], "nt");
36
+        }
36 37
     }
37 38
 }
38 39
 
Please login to merge, or discard this patch.