Core/src/EmulatorTrait.php
private function emulatorBaseUri($emulatorHost)
    {
        $emulatorUriComponents = parse_url($emulatorHost);
        $emulatorUriComponents = array_merge(['scheme' => 'http', 'port' => ''], $emulatorUriComponents);
        $baseUri = "{$emulatorUriComponents['scheme']}://{$emulatorUriComponents['host']}";
        $baseUri .= $emulatorUriComponents['port'] ? ":{$emulatorUriComponents['port']}/" : '/';

        return $baseUri;
    }
private function emulatorBaseUri($emulatorHost)
    {
        $emulatorUriComponents = parse_url($emulatorHost);
        $emulatorUriComponents = array_merge(['scheme' => 'http', 'port' => ''], $emulatorUriComponents);
        $baseUri = "{$emulatorUriComponents['scheme']}://{$emulatorUriComponents['host']}";
        $baseUri .= $emulatorUriComponents['port'] ? ":{$emulatorUriComponents['port']}/" : '/';

        return $baseUri;
    }
private function emulatorBaseUri ( $ emulatorHost ) { $ emulatorUriComponents = parse_url ( $ emulatorHost ) ; $ emulatorUriComponents = array_merge ( [ 'scheme' => 'http' , 'port' => '' ] , $ emulatorUriComponents ) ; $ baseUri = "{$emulatorUriComponents['scheme']}://{$emulatorUriComponents['host']}" ; $ baseUri .= $ emulatorUriComponents [ 'port' ] ? ":{$emulatorUriComponents['port']}/" : '/' ; return $ baseUri ; }
Retrieve a valid base uri for a service emulator.

@param string $emulatorHost
@return string
Retrieve a valid base uri for a service emulator .