function UriComparator::computePort
1 call to UriComparator::computePort()
- UriComparator::isCrossOrigin in vendor/
guzzlehttp/ psr7/ src/ UriComparator.php - Determines if a modified URL should be considered cross-origin with respect to an original URL.
File
-
vendor/
guzzlehttp/ psr7/ src/ UriComparator.php, line 37
Class
- UriComparator
- Provides methods to determine if a modified URL should be considered cross-origin.
Namespace
GuzzleHttp\Psr7Code
private static function computePort(UriInterface $uri) : int {
$port = $uri->getPort();
if (null !== $port) {
return $port;
}
return 'https' === $uri->getScheme() ? 443 : 80;
}