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/leadin/public/admin
File: class-impact.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Leadin\admin;
[2] Fix | Delete
[3] Fix | Delete
use Leadin\data\Filters;
[4] Fix | Delete
[5] Fix | Delete
const IR_CLICK_ID = 'irclickid';
[6] Fix | Delete
const MPID = 'mpid';
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Class containing the logic to get Impact affiliate information when necessary
[10] Fix | Delete
*/
[11] Fix | Delete
class Impact {
[12] Fix | Delete
/**
[13] Fix | Delete
* Apply leadin_impact_code filter.
[14] Fix | Delete
*/
[15] Fix | Delete
public static function get_affiliate_link() {
[16] Fix | Delete
return Filters::apply_impact_code_filters();
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Get impact properties from query parameters.
[21] Fix | Delete
*/
[22] Fix | Delete
public static function get_params() {
[23] Fix | Delete
$params = array();
[24] Fix | Delete
[25] Fix | Delete
// phpcs:disable WordPress.Security.NonceVerification.Recommended
[26] Fix | Delete
if ( isset( $_GET['leadin_irclickid'] ) ) {
[27] Fix | Delete
$params[ IR_CLICK_ID ] = sanitize_text_field( \wp_unslash( $_GET['leadin_irclickid'] ) );
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
if ( isset( $_GET['leadin_mpid'] ) ) {
[31] Fix | Delete
$params[ MPID ] = sanitize_text_field( \wp_unslash( $_GET['leadin_mpid'] ) );
[32] Fix | Delete
}
[33] Fix | Delete
// phpcs:enable
[34] Fix | Delete
[35] Fix | Delete
return $params;
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
/**
[39] Fix | Delete
* Return true if the function `get_params` returns both irclickid and mpid.
[40] Fix | Delete
*/
[41] Fix | Delete
public static function has_params() {
[42] Fix | Delete
return 2 === \count( self::get_params() );
[43] Fix | Delete
}
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function