mirror of
https://github.com/danog/dns.git
synced 2024-11-30 04:29:06 +01:00
Calm down php-cs-fixer
This commit is contained in:
parent
54f53e2663
commit
d6d1535819
@ -102,8 +102,8 @@ function normalizeName(string $name): string
|
||||
if (isset($name[253]) || !\preg_match($pattern, $name)) {
|
||||
throw new InvalidNameException("Name '{$name}' is not a valid hostname.");
|
||||
}
|
||||
if ($name[strlen($name)-1] === '.') {
|
||||
$name = substr($name, 0, -1);
|
||||
if ($name[\strlen($name)-1] === '.') {
|
||||
$name = \substr($name, 0, -1);
|
||||
}
|
||||
return $name;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user