src/Client.php
private function check_base_url()
    {
        $url_valid = filter_var($this->baseurl, FILTER_VALIDATE_URL);
        if (!$url_valid) {
            trigger_error('The URL provided is incomplete or invalid!');

            return false;
        }

        $base_url_components = parse_url($this->baseurl);
        if (empty($base_url_components['port'])) {
            trigger_error('The URL provided does not have a port suffix, normally this is :8443');

            return false;
        }

        return true;
    }
private function check_base_url()
    {
        $url_valid = filter_var($this->baseurl, FILTER_VALIDATE_URL);
        if (!$url_valid) {
            trigger_error('The URL provided is incomplete or invalid!');

            return false;
        }

        $base_url_components = parse_url($this->baseurl);
        if (empty($base_url_components['port'])) {
            trigger_error('The URL provided does not have a port suffix, normally this is :8443');

            return false;
        }

        return true;
    }
private function check_base_url ( ) { $ url_valid = filter_var ( $ this -> baseurl , FILTER_VALIDATE_URL ) ; if ( ! $ url_valid ) { trigger_error ( 'The URL provided is incomplete or invalid!' ) ; return false ; } $ base_url_components = parse_url ( $ this -> baseurl ) ; if ( empty ( $ base_url_components [ 'port' ] ) ) { trigger_error ( 'The URL provided does not have a port suffix, normally this is :8443' ) ; return false ; } return true ; }
Check the submitted base URL
Check the submitted base URL