style: apply K&R + tab formatting across the codebase (make cs-fix)

Mechanical, behaviour-preserving reformat produced by 'make cs-fix' under
the new build/phpcs.xml.dist ruleset: K&R braces, tab indentation, and the
other whitespace normalisations. No logic changes.
This commit is contained in:
Divarion_D
2026-09-13 14:14:23 +03:00
parent 5843f18bb7
commit 758a9cab0b
513 changed files with 35922 additions and 36029 deletions
+5 -5
View File
@@ -27,7 +27,7 @@ class DomainResolver {
* @param bool $rForceSSL Force the https protocol.
* @return string Public base URL (trailing slash), or '' if no proxy is available.
*/
public static function resolve($rServerID, $rForceSSL = false) {
public static function resolve(int $rServerID, bool $rForceSSL = false) {
global $rServers, $rSettings;
$rOriginatorID = null;
if ($rForceSSL) {
@@ -62,14 +62,14 @@ class DomainResolver {
}
if ($rProxied || $rSettings['use_mdomain_in_lists'] == 1) {
$rResellerDomains = CacheReader::get('reseller_domains') ?: array();
$rResellerDomains = CacheReader::get('reseller_domains') ?: [];
if (!(strlen($rDomain) > 0 && in_array(strtolower($rDomain), $rResellerDomains))) {
if (empty($rServers[$rServerID]['domain_name'])) {
$rDomain = escapeshellcmd($rServers[$rServerID]['server_ip']);
} else if (filter_var($rDomain, FILTER_VALIDATE_IP)) {
} elseif (filter_var($rDomain, FILTER_VALIDATE_IP)) {
$rDomain = escapeshellcmd($rServers[$rServerID]['server_ip']);
} else {
$rDomain = str_replace(array('http://', '/', 'https://'), '', escapeshellcmd(explode(',', $rServers[$rServerID]['domain_name'])[0]));
$rDomain = str_replace(['http://', '/', 'https://'], '', escapeshellcmd(explode(',', $rServers[$rServerID]['domain_name'])[0]));
}
}
} else {
@@ -77,7 +77,7 @@ class DomainResolver {
if (empty($rServers[$rServerID]['domain_name'])) {
$rDomain = escapeshellcmd($rServers[$rServerID]['server_ip']);
} else {
$rDomain = str_replace(array('http://', '/', 'https://'), '', escapeshellcmd(explode(',', $rServers[$rServerID]['domain_name'])[0]));
$rDomain = str_replace(['http://', '/', 'https://'], '', escapeshellcmd(explode(',', $rServers[$rServerID]['domain_name'])[0]));
}
}
}