protected function getScheme(?bool $secure): string
    {
        if (\is_null($secure)) {
            return $this->forceSchema ?: $this->request->getScheme().'://';
        }

        return $secure ? 'https://' : 'http://';
    }
protected function getScheme(?bool $secure): string
    {
        if (\is_null($secure)) {
            return $this->forceSchema ?: $this->request->getScheme().'://';
        }

        return $secure ? 'https://' : 'http://';
    }
protected function getScheme ( ? bool $ secure ) : string { if ( \ is_null ( $ secure ) ) { return $ this -> forceSchema ? : $ this -> request -> getScheme ( ) . '://' ; } return $ secure ? 'https://' : 'http://' ; }
Get the scheme for a raw URL.

@param  bool|null  $secure

@return string
Get the scheme for a raw URL .