Util: rename to isSubnetStrict for clarity

This commit is contained in:
Stephan de Wit 2023-03-06 16:22:35 +01:00
parent 1fbb96a98c
commit ee34fbb6fa
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ class Util
* @param string $network network
* @return boolean
*/
public static function isStrict($network)
public static function isSubnetStrict($network)
{
if (self::isSubnet($network)) {
list($net, $mask) = explode('/', $network);

View File

@ -111,7 +111,7 @@ class NetworkValidator extends BaseValidator
}
}
if ($this->getOption('strict') === true && !Util::isStrict($cidr)) {
if ($this->getOption('strict') === true && !Util::isSubnetStrict($cidr)) {
$result = false;
}
}