2
0
forked from Wavyzz/dolibarr

Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen

This commit is contained in:
Frédéric FRANCE
2019-10-16 20:00:01 +02:00
parent 012ddd1cdc
commit e75f7d448c
337 changed files with 15 additions and 710 deletions

View File

@@ -1722,7 +1722,6 @@ function is_ip($ip)
{
// First we test if it is a valid IPv4
if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
// Then we test if it is a private range
if (! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE)) return 2;