source/Parser/HostName.php
Opening brace of a class must be on the line after the definition Open
Open
class HostName {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$isIpAddress = false !== $filtered && static::isIpAddress($filtered);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return false !== $filtered && !$isIpAddress;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public static function isValid(string $hostName): bool {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $hostName === filter_var($hostName, FILTER_VALIDATE_IP);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$filtered = filter_var($hostName, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public static function isIpAddress(string $hostName): bool {
- Exclude checks
Opening brace should be on a new line Open
Open
public static function isIpAddress(string $hostName): bool {
- Exclude checks
Opening brace should be on a new line Open
Open
public static function isValid(string $hostName): bool {
- Exclude checks