@@ -201,8 +201,7 @@ discard block |
||
201 | 201 | if (!filter_var(trim($this->ip, '[]'), FILTER_VALIDATE_IP, ['flags' => FILTER_FLAG_IPV6,])) { |
202 | 202 | throw new Exception("The IPv6 address '{$this->ip}' is invalid."); |
203 | 203 | } |
204 | - } |
|
205 | - else if($type != 'discord') { |
|
204 | + } else if($type != 'discord') { |
|
206 | 205 | // We have IPv4 with a port defined |
207 | 206 | if (strstr($ip_address, ':')) { |
208 | 207 | list($this->ip, $this->port_client) = explode(':', $ip_address); |
@@ -233,7 +232,7 @@ discard block |
||
233 | 232 | |
234 | 233 | // ! HURAAYYY, IGNORE IF TYPE IS DISCORD |
235 | 234 | // ! AND SET PORT/QPORT AS 1 AND ONLY 1 |
236 | - }else{ |
|
235 | + } else{ |
|
237 | 236 | if (strstr($ip_address, ':')) { |
238 | 237 | list($this->ip, $this->port_client) = explode(':', $ip_address); |
239 | 238 | |
@@ -261,7 +260,7 @@ discard block |
||
261 | 260 | // Specific query port defined |
262 | 261 | if (array_key_exists(self::SERVER_OPTIONS_QUERY_PORT, $this->options)) { |
263 | 262 | $this->port_query = (int)$this->options[self::SERVER_OPTIONS_QUERY_PORT]; |
264 | - }else{ |
|
263 | + } else{ |
|
265 | 264 | // Do math based on the protocol class |
266 | 265 | $this->port_query = $this->protocol->findQueryPort($this->port_client); |
267 | 266 | } |
@@ -255,7 +255,7 @@ |
||
255 | 255 | { |
256 | 256 | if(!$this->protocol != 'discord'){ |
257 | 257 | return $clientPort + $this->port_diff; |
258 | - }else{ |
|
258 | + } else{ |
|
259 | 259 | return 1; |
260 | 260 | } |
261 | 261 | } |