From 7eaf59057c3cb316df01baf212181f6047f2c315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 7 Dec 2023 13:39:35 +0100 Subject: [PATCH 1/2] Enhancement: Enable no_spaces_after_function_name fixer --- .php-cs-fixer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 1810d5c069..8cc5bf1f98 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -43,6 +43,7 @@ 'no_extra_blank_lines' => true, 'no_mixed_echo_print' => true, 'no_singleline_whitespace_before_semicolons' => true, + 'no_spaces_after_function_name' => true, 'no_superfluous_elseif' => true, 'no_trailing_whitespace' => true, 'ordered_class_elements' => true, From 24b9bdb73819133e380b22fdb2a4520224b56eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 7 Dec 2023 15:27:18 +0100 Subject: [PATCH 2/2] Fix: Run 'make coding-standards' --- include/ip-to-country.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ip-to-country.inc b/include/ip-to-country.inc index b348a00991..995d55e85e 100644 --- a/include/ip-to-country.inc +++ b/include/ip-to-country.inc @@ -202,7 +202,7 @@ function i2c_realip() if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { // Put the IP's into an array which we shall work with shortly. - $ips = explode (", ", $_SERVER['HTTP_X_FORWARDED_FOR']); + $ips = explode(", ", $_SERVER['HTTP_X_FORWARDED_FOR']); if ($ip) { array_unshift($ips, $ip); $ip = false; } for ($i = 0; $i < count($ips); $i++) {