[web-php] master: Enhancement: Enable `no_spaces_after_function_name` fixer (#883)

From: Date: Thu, 07 Dec 2023 14:49:10 +0000
Subject: [web-php] master: Enhancement: Enable `no_spaces_after_function_name` fixer (#883)
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-31254@lists.php.net to get a copy of this message
Author: Andreas Möller (localheinz) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2023-12-07T15:35:31+01:00 Commit: https://github.com/php/web-php/commit/25d2dc1cc9206ec71ff11a07167094f656de25bc Raw diff: https://github.com/php/web-php/commit/25d2dc1cc9206ec71ff11a07167094f656de25bc.diff Enhancement: Enable no_spaces_after_function_name fixer (#883) Changed paths: M .php-cs-fixer.php M include/ip-to-country.inc Diff: 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, 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++) {

« previous php.webmaster (#31254) next »