PATH:
home
/
sarkas88.com
/
public_html
/
wp-content
/
plugins
/
wordpress-seo
/
vendor_prefixed
/
guzzlehttp
/
psr7
/
src
<?php declare (strict_types=1); namespace YoastSEO_Vendor\GuzzleHttp\Psr7; use YoastSEO_Vendor\Psr\Http\Message\UriInterface; /** * Provides methods to determine if a modified URL should be considered cross-origin. * * @author Graham Campbell */ final class UriComparator { /** * Determines if a modified URL should be considered cross-origin with * respect to an original URL. */ public static function isCrossOrigin(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $original, \YoastSEO_Vendor\Psr\Http\Message\UriInterface $modified) : bool { if (\strcasecmp($original->getHost(), $modified->getHost()) !== 0) { return \true; } if ($original->getScheme() !== $modified->getScheme()) { return \true; } if (self::computePort($original) !== self::computePort($modified)) { return \true; } return \false; } private static function computePort(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $uri) : int { $port = $uri->getPort(); if (null !== $port) { return $port; } return 'https' === $uri->getScheme() ? 443 : 80; } private function __construct() { // cannot be instantiated } }
[+]
Exception
[-] ServerRequest.php
[open]
[-] NoSeekStream.php
[open]
[-] Query.php
[open]
[-] AppendStream.php
[open]
[-] Header.php
[open]
[-] MessageTrait.php
[open]
[-] DroppingStream.php
[open]
[-] Request.php
[open]
[-] PumpStream.php
[open]
[-] Stream.php
[open]
[-] BufferStream.php
[open]
[-] Message.php
[open]
[-] Utils.php
[open]
[-] MultipartStream.php
[open]
[-] LimitStream.php
[open]
[-] StreamDecoratorTrait.php
[open]
[-] MimeType.php
[open]
[-] Response.php
[open]
[-] UriComparator.php
[open]
[-] InflateStream.php
[open]
[-] Uri.php
[open]
[-] UploadedFile.php
[open]
[-] HttpFactory.php
[open]
[-] Rfc7230.php
[open]
[-] UriResolver.php
[open]
[-] FnStream.php
[open]
[+]
..
[-] StreamWrapper.php
[open]
[-] CachingStream.php
[open]
[-] UriNormalizer.php
[open]
[-] LazyOpenStream.php
[open]