Passed
Push — main ( 4ec7e6...481947 )
by YeBeKhe
02:03
created
collect.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
             // Handle the error here, e.g. by logging it
105 105
             $attempts++;
106 106
             if ($attempts == $max_attempts) {
107
-             // Reached max attempts, so throw an exception to indicate failure
107
+                // Reached max attempts, so throw an exception to indicate failure
108 108
                 throw new Exception('Failed to retrieve data after ' . $max_attempts . ' attempts.');
109 109
             }
110 110
         sleep(1); // Wait for 1 second before retrying
Please login to merge, or discard this patch.
modules/get_data.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@
 block discarded – undo
377 377
                         $final_data[$key]["time"] = convert_to_iran_time(
378 378
                             $matches[1][$key]
379 379
                         );
380
-                      $config_number ++ ;
380
+                        $config_number ++ ;
381 381
                     }
382 382
                 }
383 383
             }
Please login to merge, or discard this patch.
modules/singbox.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 function extract_names($input){
16 16
     foreach($input as $config){
17 17
         if ($config['tag'] !== ""){
18
-             $locationNames[] = $config['tag'];
18
+                $locationNames[] = $config['tag'];
19 19
         }
20 20
     }
21 21
     return $locationNames;
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
         "authenticated_length"=> true,
39 39
         "packet_encoding"=> "",
40 40
         "multiplex"=> array(
41
-          "enabled"=> false,
42
-          "protocol"=> "smux",
43
-          "max_streams"=> 32
41
+            "enabled"=> false,
42
+            "protocol"=> "smux",
43
+            "max_streams"=> 32
44 44
         )
45 45
     );
46 46
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             "utls"=> array(
54 54
                 "enabled"=> true,
55 55
                 "fingerprint"=> "chrome"
56
-              )
56
+                )
57 57
         );
58 58
     }
59 59
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         if (
144 144
             !isEvenLength($decoded_vless["params"]["sid"]) && 
145 145
             !is_null($decoded_vless["params"]["sid"])
146
-           ) {
146
+            ) {
147 147
             return null;
148 148
         }
149 149
         }
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
         "server_port"=> intval($decoded_trojan['port']),
193 193
         "password"=> $decoded_trojan['username'],
194 194
         "multiplex"=> array(
195
-          "enabled"=> false,
196
-          "protocol"=> "smux",
197
-          "max_streams"=> 32
195
+            "enabled"=> false,
196
+            "protocol"=> "smux",
197
+            "max_streams"=> 32
198 198
         )
199 199
     );
200 200
 
@@ -217,14 +217,14 @@  discard block
 block discarded – undo
217 217
             "headers"=> array(
218 218
                 "Host"=> $decoded_trojan['params']["host"]
219 219
             )
220
-          ),
221
-          "grpc" => array(
220
+            ),
221
+            "grpc" => array(
222 222
             "type" => $decoded_trojan['params']["type"],
223 223
             "service_name" => $decoded_trojan['params']["serviceName"],
224 224
             "idle_timeout" => "15s",
225 225
             "ping_timeout" => "15s",
226 226
             "permit_without_stream" => false
227
-          )
227
+            )
228 228
     );
229 229
     if (isset($decoded_trojan['params']["type"])){
230 230
         if ($decoded_trojan['params']["type"] === "ws" || $decoded_trojan['params']["type"] === "grpc"){
Please login to merge, or discard this patch.