2323 /**
2424 * Returns a site URL as defined by the App config.
2525 *
26- * @param array|string $relativePath URI string or array of URI segments
27- * @param string|null $scheme URI scheme. E.g., http, ftp
28- * @param App|null $config Alternate configuration to use
26+ * @param array|string $relativePath URI string or array of URI segments.
27+ * @param string|null $scheme URI scheme. E.g., http, ftp. If empty
28+ * string '' is set, a protocol-relative
29+ * link is returned.
30+ * @param App|null $config Alternate configuration to use.
2931 */
3032 function site_url ($ relativePath = '' , ?string $ scheme = null , ?App $ config = null ): string
3133 {
@@ -42,8 +44,10 @@ function site_url($relativePath = '', ?string $scheme = null, ?App $config = nul
4244 * Returns the base URL as defined by the App config.
4345 * Base URLs are trimmed site URLs without the index page.
4446 *
45- * @param array|string $relativePath URI string or array of URI segments
46- * @param string|null $scheme URI scheme. E.g., http, ftp
47+ * @param array|string $relativePath URI string or array of URI segments.
48+ * @param string|null $scheme URI scheme. E.g., http, ftp. If empty
49+ * string '' is set, a protocol-relative
50+ * link is returned.
4751 */
4852 function base_url ($ relativePath = '' , ?string $ scheme = null ): string
4953 {
0 commit comments