mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Enhancement: Enable no_spaces_after_function_name fixer (#883)
This commit is contained in:
@@ -43,6 +43,7 @@ $config
|
||||
'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,
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user