mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
Util: rename to isSubnetStrict for clarity
This commit is contained in:
parent
1fbb96a98c
commit
ee34fbb6fa
@ -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);
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user