MCPcopy Create free account
hub / github.com/GDATASoftwareAG/vaas / validUri

Method validUri

php/src/vaas/Vaas.php:431–437  ·  view source on GitHub ↗

* Validate the URI per RFC 2396 (https://datatracker.ietf.org/doc/html/rfc2396) * @param string $uri The URI to validate * @return string The validated URI * @throws VaasClientException If the URI is invalid */

(string $uri)

Source from the content-addressed store, hash-verified

429 * @throws VaasClientException If the URI is invalid
430 */
431 public static function validUri(string $uri): string
432 {
433 if (!filter_var($uri, FILTER_VALIDATE_URL)) {
434 throw new VaasClientException('Invalid URI');
435 }
436 return $uri;
437 }
438}

Callers 1

forUrlAsyncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected