public function isValidIP(?string
$ip = null, ?string
$which = null
): bool
{ return (new FormatRules())->
valid_ip($ip,
$which);
} /**
* Get the request method.
*
* @param bool $upper Whether to return in upper or lower case.
*
* @deprecated 4.0.5 The $upper functionality will be removed and this will revert to its PSR-7 equivalent
*
* @codeCoverageIgnore
*/