diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-17 10:09:03 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-17 10:09:03 -0400 |
commit | 8c532efd5f02f7a7e5ea322a07ddcf49d130a8ec (patch) | |
tree | 289222e21420b8d0092f06de097090f179202f6b /app/Core/Request.php | |
parent | b40190ee9fd557d86e594208ed77fa762c7dcfb7 (diff) |
Run php-cs-fixer on the code base
Diffstat (limited to 'app/Core/Request.php')
-rw-r--r-- | app/Core/Request.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/Core/Request.php b/app/Core/Request.php index f553d7cd..5eda2d02 100644 --- a/app/Core/Request.php +++ b/app/Core/Request.php @@ -218,11 +218,8 @@ class Request ); foreach ($keys as $key) { - if (isset($_SERVER[$key])) { - foreach (explode(',', $_SERVER[$key]) as $ip_address) { - $ip_address = trim($ip_address); if ($only_public) { @@ -231,9 +228,7 @@ class Request if (filter_var($ip_address, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) !== false) { return $ip_address; } - } - else { - + } else { return $ip_address; } } |