fix(CS): Fix coding style

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-02-14 15:38:15 +01:00
parent c4684089a8
commit 696ed4a125
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205

View file

@ -611,7 +611,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
if ($colons > 1) {
// Extract IP from string with brackets and optional port
if (preg_match('/^\[(.+?)\](?::\d+)?$/', $IP, $matches) && isset($matches[1])) {
$IP = $matches[1];
$IP = $matches[1];
}
} elseif ($colons === 1) {
// IPv4 with port