PHPCS (no space before parenthesis). And it's quite opposite with a condition. Because we actually don't need the protocol when `$secure` is not null, since we're overwriting it anyway.

So if it happens, that `$secure` is null and there is no `$this->protocol`, then it's a new exception. Ha, and exactly this case isn't covered. For example I can have absolute url (or base url) without a protocol: `//www.website.com` (which in browser means to take currently used protocol).