protected static function buildPath(string ...$parts)
    {
        $parts = array_map(function (string $part) {
            if (!$part) {
                throw new InvalidArgumentException('Missing required parameter.');
            }

            return self::urlEncode($part);
        }, $parts);

        return implode('/', $parts);
    }
protected static function buildPath(string ...$parts)
    {
        $parts = array_map(function (string $part) {
            if (!$part) {
                throw new InvalidArgumentException('Missing required parameter.');
            }

            return self::urlEncode($part);
        }, $parts);

        return implode('/', $parts);
    }
protected static function buildPath ( string ... $ parts ) { $ parts = array_map ( function ( string $ part ) { if ( ! $ part ) { throw new InvalidArgumentException ( 'Missing required parameter.' ) ; } return self :: urlEncode ( $ part ) ; } , $ parts ) ; return implode ( '/' , $ parts ) ; }
Build a URL path from the given parts.

@param string[] $parts

@throws \Bitbucket\Exception\InvalidArgumentException

@return string
Build a URL path from the given parts .