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
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres.../vendor_p.../guzzleht.../guzzle/src
File: functions.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace YoastSEO_Vendor\GuzzleHttp;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Debug function used to describe the provided value type and class.
[5] Fix | Delete
*
[6] Fix | Delete
* @param mixed $input Any type of variable to describe the type of. This
[7] Fix | Delete
* parameter misses a typehint because of that.
[8] Fix | Delete
*
[9] Fix | Delete
* @return string Returns a string containing the type of the variable and
[10] Fix | Delete
* if a class is provided, the class name.
[11] Fix | Delete
*
[12] Fix | Delete
* @deprecated describe_type will be removed in guzzlehttp/guzzle:8.0. Use Utils::describeType instead.
[13] Fix | Delete
*/
[14] Fix | Delete
function describe_type($input) : string
[15] Fix | Delete
{
[16] Fix | Delete
return \YoastSEO_Vendor\GuzzleHttp\Utils::describeType($input);
[17] Fix | Delete
}
[18] Fix | Delete
/**
[19] Fix | Delete
* Parses an array of header lines into an associative array of headers.
[20] Fix | Delete
*
[21] Fix | Delete
* @param iterable $lines Header lines array of strings in the following
[22] Fix | Delete
* format: "Name: Value"
[23] Fix | Delete
*
[24] Fix | Delete
* @deprecated headers_from_lines will be removed in guzzlehttp/guzzle:8.0. Use Utils::headersFromLines instead.
[25] Fix | Delete
*/
[26] Fix | Delete
function headers_from_lines(iterable $lines) : array
[27] Fix | Delete
{
[28] Fix | Delete
return \YoastSEO_Vendor\GuzzleHttp\Utils::headersFromLines($lines);
[29] Fix | Delete
}
[30] Fix | Delete
/**
[31] Fix | Delete
* Returns a debug stream based on the provided variable.
[32] Fix | Delete
*
[33] Fix | Delete
* @param mixed $value Optional value
[34] Fix | Delete
*
[35] Fix | Delete
* @return resource
[36] Fix | Delete
*
[37] Fix | Delete
* @deprecated debug_resource will be removed in guzzlehttp/guzzle:8.0. Use Utils::debugResource instead.
[38] Fix | Delete
*/
[39] Fix | Delete
function debug_resource($value = null)
[40] Fix | Delete
{
[41] Fix | Delete
return \YoastSEO_Vendor\GuzzleHttp\Utils::debugResource($value);
[42] Fix | Delete
}
[43] Fix | Delete
/**
[44] Fix | Delete
* Chooses and creates a default handler to use based on the environment.
[45] Fix | Delete
*
[46] Fix | Delete
* The returned handler is not wrapped by any default middlewares.
[47] Fix | Delete
*
[48] Fix | Delete
* @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface Returns the best handler for the given system.
[49] Fix | Delete
*
[50] Fix | Delete
* @throws \RuntimeException if no viable Handler is available.
[51] Fix | Delete
*
[52] Fix | Delete
* @deprecated choose_handler will be removed in guzzlehttp/guzzle:8.0. Use Utils::chooseHandler instead.
[53] Fix | Delete
*/
[54] Fix | Delete
function choose_handler() : callable
[55] Fix | Delete
{
[56] Fix | Delete
return \YoastSEO_Vendor\GuzzleHttp\Utils::chooseHandler();
[57] Fix | Delete
}
[58] Fix | Delete
/**
[59] Fix | Delete
* Get the default User-Agent string to use with Guzzle.
[60] Fix | Delete
*
[61] Fix | Delete
* @deprecated default_user_agent will be removed in guzzlehttp/guzzle:8.0. Use Utils::defaultUserAgent instead.
[62] Fix | Delete
*/
[63] Fix | Delete
function default_user_agent() : string
[64] Fix | Delete
{
[65] Fix | Delete
return \YoastSEO_Vendor\GuzzleHttp\Utils::defaultUserAgent();
[66] Fix | Delete
}
[67] Fix | Delete
/**
[68] Fix | Delete
* Returns the default cacert bundle for the current system.
[69] Fix | Delete
*
[70] Fix | Delete
* First, the openssl.cafile and curl.cainfo php.ini settings are checked.
[71] Fix | Delete
* If those settings are not configured, then the common locations for
[72] Fix | Delete
* bundles found on Red Hat, CentOS, Fedora, Ubuntu, Debian, FreeBSD, OS X
[73] Fix | Delete
* and Windows are checked. If any of these file locations are found on
[74] Fix | Delete
* disk, they will be utilized.
[75] Fix | Delete
*
[76] Fix | Delete
* Note: the result of this function is cached for subsequent calls.
[77] Fix | Delete
*
[78] Fix | Delete
* @throws \RuntimeException if no bundle can be found.
[79] Fix | Delete
*
[80] Fix | Delete
* @deprecated default_ca_bundle will be removed in guzzlehttp/guzzle:8.0. This function is not needed in PHP 5.6+.
[81] Fix | Delete
*/
[82] Fix | Delete
function default_ca_bundle() : string
[83] Fix | Delete
{
[84] Fix | Delete
return \YoastSEO_Vendor\GuzzleHttp\Utils::defaultCaBundle();
[85] Fix | Delete
}
[86] Fix | Delete
/**
[87] Fix | Delete
* Creates an associative array of lowercase header names to the actual
[88] Fix | Delete
* header casing.
[89] Fix | Delete
*
[90] Fix | Delete
* @deprecated normalize_header_keys will be removed in guzzlehttp/guzzle:8.0. Use Utils::normalizeHeaderKeys instead.
[91] Fix | Delete
*/
[92] Fix | Delete
function normalize_header_keys(array $headers) : array
[93] Fix | Delete
{
[94] Fix | Delete
return \YoastSEO_Vendor\GuzzleHttp\Utils::normalizeHeaderKeys($headers);
[95] Fix | Delete
}
[96] Fix | Delete
/**
[97] Fix | Delete
* Returns true if the provided host matches any of the no proxy areas.
[98] Fix | Delete
*
[99] Fix | Delete
* This method will strip a port from the host if it is present. Each pattern
[100] Fix | Delete
* can be matched with an exact match (e.g., "foo.com" == "foo.com") or a
[101] Fix | Delete
* partial match: (e.g., "foo.com" == "baz.foo.com" and ".foo.com" ==
[102] Fix | Delete
* "baz.foo.com", but ".foo.com" != "foo.com").
[103] Fix | Delete
*
[104] Fix | Delete
* Areas are matched in the following cases:
[105] Fix | Delete
* 1. "*" (without quotes) always matches any hosts.
[106] Fix | Delete
* 2. An exact match.
[107] Fix | Delete
* 3. The area starts with "." and the area is the last part of the host. e.g.
[108] Fix | Delete
* '.mit.edu' will match any host that ends with '.mit.edu'.
[109] Fix | Delete
*
[110] Fix | Delete
* @param string $host Host to check against the patterns.
[111] Fix | Delete
* @param string[] $noProxyArray An array of host patterns.
[112] Fix | Delete
*
[113] Fix | Delete
* @throws Exception\InvalidArgumentException
[114] Fix | Delete
*
[115] Fix | Delete
* @deprecated is_host_in_noproxy will be removed in guzzlehttp/guzzle:8.0. Use Utils::isHostInNoProxy instead.
[116] Fix | Delete
*/
[117] Fix | Delete
function is_host_in_noproxy(string $host, array $noProxyArray) : bool
[118] Fix | Delete
{
[119] Fix | Delete
return \YoastSEO_Vendor\GuzzleHttp\Utils::isHostInNoProxy($host, $noProxyArray);
[120] Fix | Delete
}
[121] Fix | Delete
/**
[122] Fix | Delete
* Wrapper for json_decode that throws when an error occurs.
[123] Fix | Delete
*
[124] Fix | Delete
* @param string $json JSON data to parse
[125] Fix | Delete
* @param bool $assoc When true, returned objects will be converted
[126] Fix | Delete
* into associative arrays.
[127] Fix | Delete
* @param int $depth User specified recursion depth.
[128] Fix | Delete
* @param int $options Bitmask of JSON decode options.
[129] Fix | Delete
*
[130] Fix | Delete
* @return object|array|string|int|float|bool|null
[131] Fix | Delete
*
[132] Fix | Delete
* @throws Exception\InvalidArgumentException if the JSON cannot be decoded.
[133] Fix | Delete
*
[134] Fix | Delete
* @see https://www.php.net/manual/en/function.json-decode.php
[135] Fix | Delete
* @deprecated json_decode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonDecode instead.
[136] Fix | Delete
*/
[137] Fix | Delete
function json_decode(string $json, bool $assoc = \false, int $depth = 512, int $options = 0)
[138] Fix | Delete
{
[139] Fix | Delete
return \YoastSEO_Vendor\GuzzleHttp\Utils::jsonDecode($json, $assoc, $depth, $options);
[140] Fix | Delete
}
[141] Fix | Delete
/**
[142] Fix | Delete
* Wrapper for JSON encoding that throws when an error occurs.
[143] Fix | Delete
*
[144] Fix | Delete
* @param mixed $value The value being encoded
[145] Fix | Delete
* @param int $options JSON encode option bitmask
[146] Fix | Delete
* @param int $depth Set the maximum depth. Must be greater than zero.
[147] Fix | Delete
*
[148] Fix | Delete
* @throws Exception\InvalidArgumentException if the JSON cannot be encoded.
[149] Fix | Delete
*
[150] Fix | Delete
* @see https://www.php.net/manual/en/function.json-encode.php
[151] Fix | Delete
* @deprecated json_encode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonEncode instead.
[152] Fix | Delete
*/
[153] Fix | Delete
function json_encode($value, int $options = 0, int $depth = 512) : string
[154] Fix | Delete
{
[155] Fix | Delete
return \YoastSEO_Vendor\GuzzleHttp\Utils::jsonEncode($value, $options, $depth);
[156] Fix | Delete
}
[157] Fix | Delete
[158] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function