src/Util/Validator.php
protected function validateUrl($field, $value)
    {
        foreach (static::$validUrlPrefixes as $prefix) {
            if (\strpos($value, $prefix) !== false) {
                return \filter_var($value, \FILTER_VALIDATE_URL) !== false;
            }
        }

        return false;
    }
protected function validateUrl($field, $value)
    {
        foreach (static::$validUrlPrefixes as $prefix) {
            if (\strpos($value, $prefix) !== false) {
                return \filter_var($value, \FILTER_VALIDATE_URL) !== false;
            }
        }

        return false;
    }
protected function validateUrl ( $ field , $ value ) { foreach ( static :: $ validUrlPrefixes as $ prefix ) { if ( \ strpos ( $ value , $ prefix ) !== false ) { return \ filter_var ( $ value , \ FILTER_VALIDATE_URL ) !== false ; } } return false ; }
Validate that a field is a valid URL by syntax

@param  string $field
@param  mixed  $value

@return bool
Validate that a field is a valid URL by syntax