Passed
Push — main ( 76907d...4574b5 )
by YeBeKhe
01:49
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
 #support-url: https://t.me/v2raycollector
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     rmdir($folder);
28 28
 }
29 29
 
30
-function seprate_by_country($configs){
30
+function seprate_by_country($configs) {
31 31
     $configsArray = explode("\n", $configs);
32 32
     $configLocation = "";
33 33
     $output = [];
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
36 36
 
37 37
         if ($configType === "vmess") {
38 38
             $configName = parse_config($config, "vmess", true)['ps'];
39
-        } elseif ($configType === "vless" || $configType === "trojan" ){
39
+        } elseif ($configType === "vless" || $configType === "trojan") {
40 40
             $configName = parse_config($config, $configType)['hash'];
41
-        } elseif ($configType === "ss"){
41
+        } elseif ($configType === "ss") {
42 42
             $configName = parse_config($config, "ss")['name'];
43 43
         }
44 44
 
45
-        if (stripos($configName, "RELAY
Please login to merge, or discard this patch.