Passed
Push — main ( 08cb80...c245c7 )
by YeBeKhe
03:45 queued 01:47
created
collect.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 include "modules/ranking.php"; // Include the ranking module
7 7
 include "modules/singbox.php"; // Include the singbox module
8 8
 
9
-function addHeader ($subscription, $subscriptionName) {
9
+function addHeader($subscription, $subscriptionName) {
10 10
     $headerText = "#profile-title: base64:" . base64_encode($subscriptionName) . "
11 11
 #profile-update-interval: 1
12 12
 #subscription-userinfo: upload=0; download=0; total=10737418240000000; expire=2546249531
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     rmdir($folder);
29 29
 }
30 30
 
31
-function seprate_by_country($configs){
31
+function seprate_by_country($configs) {
32 32
     $configsArray = explode("\n", $configs);
33 33
     $configLocation = "";
34 34
     $output = [];
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
 
38 38
         if ($configType === "vmess") {
39 39
             $configName = parse_config($config, "vmess", true)['ps'];
40
-        } elseif ($configType === "vless" || $configType === "trojan" ){
40
+        } elseif ($configType === "vless" || $configType === "trojan") {
41 41
             $configName = parse_config($config, $configType)['hash'];
42
-        } elseif ($configType === "ss"){
42
+        } elseif ($configType === "ss") {
43 43
             $configName = parse_config($config, "ss")['name'];
44 44
         }
45 45
 
46
-        if (stripos($configName, "RELAY
Please login to merge, or discard this patch.