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/popup-bu.../com/helpers
File: License.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace sgpb;
[2] Fix | Delete
[3] Fix | Delete
[4] Fix | Delete
class License
[5] Fix | Delete
{
[6] Fix | Delete
public function getLicenses()
[7] Fix | Delete
{
[8] Fix | Delete
return $this->setRegisteredExtensionsLicenses();
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
public function setRegisteredExtensionsLicenses()
[12] Fix | Delete
{
[13] Fix | Delete
$registered = AdminHelper::getOption(SGPB_POPUP_BUILDER_REGISTERED_PLUGINS);
[14] Fix | Delete
$registered = json_decode($registered, true);
[15] Fix | Delete
[16] Fix | Delete
if(empty($registered)) {
[17] Fix | Delete
return [];
[18] Fix | Delete
}
[19] Fix | Delete
$licenses = array();
[20] Fix | Delete
foreach($registered as $register) {
[21] Fix | Delete
[22] Fix | Delete
if(empty($register['options']['licence'])) {
[23] Fix | Delete
continue;
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
$licenses[] = $register['options']['licence'];
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
return $licenses;
[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