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/clone/wp-conte.../plugins/wordpres.../src/helpers
File: curl-helper.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Helpers;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Helper class for getting information about the installed cURL version.
[5] Fix | Delete
*/
[6] Fix | Delete
class Curl_Helper {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Checks is cURL is installed.
[10] Fix | Delete
*
[11] Fix | Delete
* @return bool Returns true if cURL is installed.
[12] Fix | Delete
*/
[13] Fix | Delete
public function is_installed() {
[14] Fix | Delete
return \function_exists( 'curl_version' );
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* Returns the currently installed cURL version.
[19] Fix | Delete
*
[20] Fix | Delete
* @return string|null Returns a string containing the cURL version, or null if cURL is not installed.
[21] Fix | Delete
*/
[22] Fix | Delete
public function get_version() {
[23] Fix | Delete
$version = \curl_version();
[24] Fix | Delete
[25] Fix | Delete
if ( ! isset( $version['version'] ) ) {
[26] Fix | Delete
return null;
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
return $version['version'];
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function