Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres.../vendor_p.../guzzleht.../psr7/src
File: Uri.php
}
[500] Fix | Delete
$decodedKeys = \array_map(function ($k) : string {
[501] Fix | Delete
return \rawurldecode((string) $k);
[502] Fix | Delete
}, $keys);
[503] Fix | Delete
return \array_filter(\explode('&', $current), function ($part) use($decodedKeys) {
[504] Fix | Delete
return !\in_array(\rawurldecode(\explode('=', $part)[0]), $decodedKeys, \true);
[505] Fix | Delete
});
[506] Fix | Delete
}
[507] Fix | Delete
private static function generateQueryString(string $key, ?string $value) : string
[508] Fix | Delete
{
[509] Fix | Delete
// Query string separators ("=", "&") within the key or value need to be encoded
[510] Fix | Delete
// (while preventing double-encoding) before setting the query string. All other
[511] Fix | Delete
// chars that need percent-encoding will be encoded by withQuery().
[512] Fix | Delete
$queryString = \strtr($key, self::QUERY_SEPARATORS_REPLACEMENT);
[513] Fix | Delete
if ($value !== null) {
[514] Fix | Delete
$queryString .= '=' . \strtr($value, self::QUERY_SEPARATORS_REPLACEMENT);
[515] Fix | Delete
}
[516] Fix | Delete
return $queryString;
[517] Fix | Delete
}
[518] Fix | Delete
private function removeDefaultPort() : void
[519] Fix | Delete
{
[520] Fix | Delete
if ($this->port !== null && self::isDefaultPort($this)) {
[521] Fix | Delete
$this->port = null;
[522] Fix | Delete
}
[523] Fix | Delete
}
[524] Fix | Delete
/**
[525] Fix | Delete
* Filters the path of a URI
[526] Fix | Delete
*
[527] Fix | Delete
* @param mixed $path
[528] Fix | Delete
*
[529] Fix | Delete
* @throws \InvalidArgumentException If the path is invalid.
[530] Fix | Delete
*/
[531] Fix | Delete
private function filterPath($path) : string
[532] Fix | Delete
{
[533] Fix | Delete
if (!\is_string($path)) {
[534] Fix | Delete
throw new \InvalidArgumentException('Path must be a string');
[535] Fix | Delete
}
[536] Fix | Delete
return \preg_replace_callback('/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\\/]++|%(?![A-Fa-f0-9]{2}))/', [$this, 'rawurlencodeMatchZero'], $path);
[537] Fix | Delete
}
[538] Fix | Delete
/**
[539] Fix | Delete
* Filters the query string or fragment of a URI.
[540] Fix | Delete
*
[541] Fix | Delete
* @param mixed $str
[542] Fix | Delete
*
[543] Fix | Delete
* @throws \InvalidArgumentException If the query or fragment is invalid.
[544] Fix | Delete
*/
[545] Fix | Delete
private function filterQueryAndFragment($str) : string
[546] Fix | Delete
{
[547] Fix | Delete
if (!\is_string($str)) {
[548] Fix | Delete
throw new \InvalidArgumentException('Query and fragment must be a string');
[549] Fix | Delete
}
[550] Fix | Delete
return \preg_replace_callback('/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\\/\\?]++|%(?![A-Fa-f0-9]{2}))/', [$this, 'rawurlencodeMatchZero'], $str);
[551] Fix | Delete
}
[552] Fix | Delete
private function rawurlencodeMatchZero(array $match) : string
[553] Fix | Delete
{
[554] Fix | Delete
return \rawurlencode($match[0]);
[555] Fix | Delete
}
[556] Fix | Delete
private function validateState() : void
[557] Fix | Delete
{
[558] Fix | Delete
if ($this->host === '' && ($this->scheme === 'http' || $this->scheme === 'https')) {
[559] Fix | Delete
$this->host = self::HTTP_DEFAULT_HOST;
[560] Fix | Delete
}
[561] Fix | Delete
if ($this->getAuthority() === '') {
[562] Fix | Delete
if (0 === \strpos($this->path, '//')) {
[563] Fix | Delete
throw new \YoastSEO_Vendor\GuzzleHttp\Psr7\Exception\MalformedUriException('The path of a URI without an authority must not start with two slashes "//"');
[564] Fix | Delete
}
[565] Fix | Delete
if ($this->scheme === '' && \false !== \strpos(\explode('/', $this->path, 2)[0], ':')) {
[566] Fix | Delete
throw new \YoastSEO_Vendor\GuzzleHttp\Psr7\Exception\MalformedUriException('A relative URI must not have a path beginning with a segment containing a colon');
[567] Fix | Delete
}
[568] Fix | Delete
}
[569] Fix | Delete
}
[570] Fix | Delete
}
[571] Fix | Delete
[572] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function