Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php declare (strict_types=1); namespace OneTeamSoftware\WC\Shipping; use OneTeamS..
Decoded Output download
<?php
declare (strict_types=1);
namespace OneTeamSoftware\WC\Shipping;
use OneTeamSoftware\WC\MultiVendorBridge\MultiVendorBridge;
use OneTeamSoftware\WC\Shipping\RatesFormatter\RatesFormatter;
class ShippingMethodPro extends ShippingMethod
{
private $multiVendorBridge;
private $originalSettings;
private $originalInstanceSettings;
protected $ratesFormatter;
public function __construct(int $Q_ExN = 0)
{
parent::__construct($Q_ExN);
if (is_null($this->plugin)) {
return;
}
add_filter($this->id . "_service_name", [$this, "getCustomServiceName"], 11, 2);
$DERVI = $this->get_option("shippingZoneFields", []);
if (false === empty($DERVI)) {
$this->supports[] = "instance-settings";
}
$this->originalSettings = $this->settings;
$this->originalInstanceSettings = $this->instance_settings;
}
public function init_instance_settings()
{
parent::init_instance_settings();
if (empty($this->instance_settings)) {
return;
}
$DERVI = $this->get_option("shippingZoneFields", []);
if (!in_array("origin", $DERVI, true)) {
unset($this->instance_settings["origin"]);
}
if (!in_array("boxes", $DERVI, true)) {
unset($this->instance_settings["combineBoxes"]);
unset($this->instance_settings["useCubeDimensions"]);
unset($this->instance_settings["boxes"]);
}
if (!in_array("carriers", $DERVI, true)) {
unset($this->instance_settings["carriers"]);
}
if (!in_array("services", $DERVI, true)) {
unset($this->instance_settings["enableServices"]);
unset($this->instance_settings["services"]);
}
}
public function calculate_shipping($xECMj = array())
{
$xECMj = apply_filters($this->id . "_calculate_shipping", $xECMj);
parent::calculate_shipping($xECMj);
}
public function getCustomServiceName(string $QyYHy, string $M7w4L): string
{
$ahDuE = [];
if (empty($this->instance_id) || !isset($this->instance_settings["services"])) {
if (isset($this->settings["services"])) {
$ahDuE = $this->settings["services"];
}
} else {
$ahDuE = $this->instance_settings["services"];
}
if (false === empty($ahDuE[$M7w4L]) && false === empty($ahDuE[$M7w4L]["title"])) {
$QyYHy = $ahDuE[$M7w4L]["title"];
}
return $QyYHy;
}
public function setSettings(array $dK4bD): void
{
$this->logger->debug(__FILE__, 153, "Set Settings: %s", print_r($dK4bD, true));
$this->logger->debug(__FILE__, 154, "Settings Before: %s", print_r($this->settings, true));
$this->settings = array_merge($this->settings, $dK4bD);
$this->logger->debug(__FILE__, 158, "Settings After: %s", print_r($this->settings, true));
if (false === empty($this->instance_id) && is_array($this->instance_settings)) {
$this->logger->debug(__FILE__, 161, "Instance Settings Before: %s", print_r($this->instance_settings, true));
$this->instance_settings = array_merge($this->instance_settings, $dK4bD);
$this->logger->debug(__FILE__, 165, "Instance Settings After: %s", print_r($this->instance_settings, true));
}
}
protected function init(): void
{
parent::init();
$this->initRatesFormatter();
$this->multiVendorBridge = MultiVendorBridge::createInstance();
add_action($this->id . "_setShippingMethodSettings", [$this, "setSettings"], 1, 1);
}
protected function initRatesFormatter(): void
{
$this->ratesFormatter = new RatesFormatter($this->logger);
}
protected function initFormFields(): void
{
parent::initFormFields();
$this->initInstanceFormFields();
}
protected function initInstanceFormFields(): void
{
$DERVI = $this->get_option("shippingZoneFields", []);
if (empty($DERVI) || false === is_array($DERVI)) {
return;
}
$xilgv = [];
if (in_array("origin", $DERVI, true)) {
$xilgv += $this->settingsForm->getOriginFields($this->instance_settings["origin"]["country"] ?? null);
}
if (in_array("boxes", $DERVI, true)) {
$xilgv += $this->settingsForm->getBoxesFields();
}
if (in_array("carriers", $DERVI, true)) {
$xilgv += $this->settingsForm->getCarriersFields();
}
if (in_array("services", $DERVI, true)) {
$xilgv += $this->settingsForm->getServicesFields();
}
if (false === empty($xilgv)) {
$this->instance_form_fields = ["shippingzone_notice_title" => ["description" => sprintf("<div class="oneteamsoftware notice notice-info inline"><p><strong>%s</strong></p></div>", __("Shipping zone settings will overwrite global settings defined in the plugin settings.", $this->id)), "type" => "title"]];
$this->instance_form_fields += $xilgv;
}
}
protected function syncSettings(): void
{
parent::syncSettings();
$dK4bD = $this->get_settings();
$this->ratesFormatter->withDisplayDeliveryTime("yes" === ($dK4bD["displayDeliveryTime"] ?? "no"))->withDisplayTrackingType("yes" === ($dK4bD["displayTrackingType"] ?? "no"))->withAddToDeliveryDays(intval($dK4bD["addToDeliveryDays"] ?? 0))->withDeliveryTimeDescriptionTemplate(__("Estimated delivery in {delivery_days} days", $this->id));
}
protected function prepareShippingRates(array $Hdu1c): array
{
$this->logger->debug(__FILE__, 278, "prepareShippingRates");
$Hdu1c = $this->ratesFilter->filter($Hdu1c);
$Hdu1c = $this->ratesFormatter->format($Hdu1c);
foreach ($Hdu1c as $M7w4L => &$gt2pR) {
$gt2pR["meta_data"] = $this->rateMetaDataBuilder->withService($M7w4L)->build();
gweMm:
}
Rlswu:
return $Hdu1c;
}
protected function getProFeatureSuffix(): string
{
if (!$this->plugin->isActivated()) {
return parent::getProFeatureSuffix();
}
return '';
}
protected function getProFeatureAttributes(): array
{
if (!$this->plugin->isActivated()) {
return parent::getProFeatureAttributes();
}
return [];
}
protected function getVendorAddress(int $tM2eU): array
{
if (empty($tM2eU)) {
return [];
}
return $this->multiVendorBridge->getVendorAddress($tM2eU);
}
protected function prepareParcel(array $xECMj, array $pLlsY): array
{
$this->logger->debug(__FILE__, 342, "prepareParcel");
$pLlsY = parent::prepareParcel($xECMj, $pLlsY);
$pLlsY["carriers"] = $this->get_option("carriers", []);
$pLlsY["cod"] = $this->get_option("cod", "no");
$pLlsY["cod_method"] = $this->get_option("cod_method", '');
$pLlsY["alcohol"] = false === empty($xECMj["alcohol"]);
$pLlsY["dryIce"] = false === empty($xECMj["dryIce"]);
$pLlsY["vendor_id"] = $pLlsY["seller_id"] = $tM2eU = $this->getPackageVendorId($xECMj);
$pLlsY["origin"] = $this->getOrigin($tM2eU);
return $pLlsY;
}
protected function getPackageVendorId(array $xECMj): int
{
if ("no" === $this->get_option("useSellerAddress", "no")) {
return 0;
}
$tM2eU = $this->multiVendorBridge->getPackageVendorId($xECMj);
if (false === empty($tM2eU)) {
$this->logger->debug(__FILE__, 370, "Found " . $this->multiVendorBridge->getName() . " Vendor: " . $tM2eU);
}
return $tM2eU;
}
protected function getOrigin(int $tM2eU): array
{
if (false === $this->adapter->getFeatures()->hasOriginFeature()) {
return [];
}
$Bj1yA = $this->getVendorAddress($tM2eU);
if (empty($Bj1yA)) {
$Bj1yA = $this->get_option("origin");
}
$this->logger->debug(__FILE__, 394, "Origin address: %s", print_r($Bj1yA, true));
return $Bj1yA;
}
protected function getServiceMatches(array $xECMj): array
{
$jMNYP = new ServicesMatcher($this->logger);
$jMNYP->setSettings($this->get_settings());
$o910k = $jMNYP->getServiceMatches($xECMj["contents"] ?? []);
$this->logger->debug(__FILE__, 412, "Allowed Services: %s, Enabled by default: %s", print_r($o910k, true), $this->areServicesEnabledByDefault() ? "yes" : "no");
return $o910k;
}
public function is_available($xECMj)
{
$xECMj = $this->tryToFixPackage((array)$xECMj);
$this->loadVendorSettings($this->multiVendorBridge->getPackageVendorId($xECMj));
if (false === parent::is_available($xECMj)) {
return false;
}
$jqrTg = $this->getServiceMatches($xECMj);
if (false === $this->areServicesEnabledByDefault() && false === $this->hasAllowedServices($jqrTg)) {
$this->logger->debug(__FILE__, 436, "No services are allowed, so we can not quote live shipping rates");
return false;
}
$this->ratesFilter->setSettings(["allowedServices" => $jqrTg]);
return true;
}
protected function areServicesEnabledByDefault(): bool
{
return "yes" === $this->get_option("enableServices") || empty($this->get_option("services"));
}
protected function loadVendorSettings(int $tM2eU): void
{
$this->logger->debug(__FILE__, 466, "loadVendorSettings, vendorId: %d", $tM2eU);
$this->settings = apply_filters($this->id . "_settings", $this->originalSettings, $tM2eU);
if ($this->instance_id > 0) {
$this->instance_settings = apply_filters($this->id . "_settings", $this->originalInstanceSettings, $tM2eU);
}
}
protected function hasAllowedServices(array $jqrTg): bool
{
$pKCXN = false;
foreach ($jqrTg as $LfMIP) {
if (false === empty($LfMIP)) {
$pKCXN = true;
goto S4u_k;
}
bYka9:
}
S4u_k:
return $pKCXN;
}
protected function initPackagePropertiesBuilder(): void
{
$this->packagePropertiesBuilder = new PackagePropertiesBuilderPro($this->logger);
}
protected function initRatesFilter(): void
{
$this->ratesFilter = new RatesFilterPro($this->logger);
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare (strict_types=1);
namespace OneTeamSoftware\WC\Shipping;
use OneTeamSoftware\WC\MultiVendorBridge\MultiVendorBridge;
use OneTeamSoftware\WC\Shipping\RatesFormatter\RatesFormatter;
class ShippingMethodPro extends ShippingMethod
{
private $multiVendorBridge;
private $originalSettings;
private $originalInstanceSettings;
protected $ratesFormatter;
public function __construct(int $Q_ExN = 0)
{
parent::__construct($Q_ExN);
if (is_null($this->plugin)) {
return;
}
add_filter($this->id . "\137\x73\145\162\x76\x69\x63\x65\137\x6e\x61\155\x65", [$this, "\x67\145\x74\x43\x75\x73\x74\x6f\x6d\x53\145\162\x76\x69\143\x65\x4e\141\x6d\145"], 11, 2);
$DERVI = $this->get_option("\163\150\151\x70\160\x69\156\x67\132\157\156\145\x46\x69\145\154\144\x73", []);
if (false === empty($DERVI)) {
$this->supports[] = "\x69\156\163\164\x61\x6e\143\x65\x2d\x73\x65\164\164\x69\156\x67\x73";
}
$this->originalSettings = $this->settings;
$this->originalInstanceSettings = $this->instance_settings;
}
public function init_instance_settings()
{
parent::init_instance_settings();
if (empty($this->instance_settings)) {
return;
}
$DERVI = $this->get_option("\163\150\151\160\160\x69\156\147\x5a\157\x6e\x65\x46\151\x65\x6c\x64\x73", []);
if (!in_array("\x6f\162\x69\x67\x69\156", $DERVI, true)) {
unset($this->instance_settings["\157\162\x69\147\x69\156"]);
}
if (!in_array("\142\x6f\x78\145\163", $DERVI, true)) {
unset($this->instance_settings["\x63\x6f\x6d\x62\x69\156\145\x42\157\170\145\x73"]);
unset($this->instance_settings["\x75\x73\x65\x43\165\142\145\x44\x69\155\145\156\x73\151\157\156\x73"]);
unset($this->instance_settings["\x62\157\170\145\x73"]);
}
if (!in_array("\x63\x61\162\x72\x69\x65\x72\x73", $DERVI, true)) {
unset($this->instance_settings["\143\141\162\x72\151\x65\162\x73"]);
}
if (!in_array("\x73\x65\162\x76\x69\143\145\163", $DERVI, true)) {
unset($this->instance_settings["\145\x6e\141\x62\154\x65\x53\x65\x72\x76\151\143\x65\163"]);
unset($this->instance_settings["\163\x65\x72\166\151\x63\x65\x73"]);
}
}
public function calculate_shipping($xECMj = array())
{
$xECMj = apply_filters($this->id . "\x5f\x63\x61\x6c\x63\x75\154\x61\x74\145\137\x73\x68\151\160\160\x69\x6e\147", $xECMj);
parent::calculate_shipping($xECMj);
}
public function getCustomServiceName(string $QyYHy, string $M7w4L): string
{
$ahDuE = [];
if (empty($this->instance_id) || !isset($this->instance_settings["\x73\x65\x72\x76\151\x63\x65\x73"])) {
if (isset($this->settings["\x73\145\162\x76\151\143\x65\x73"])) {
$ahDuE = $this->settings["\163\145\x72\x76\151\143\145\163"];
}
} else {
$ahDuE = $this->instance_settings["\163\145\162\166\x69\x63\145\163"];
}
if (false === empty($ahDuE[$M7w4L]) && false === empty($ahDuE[$M7w4L]["\x74\151\164\x6c\x65"])) {
$QyYHy = $ahDuE[$M7w4L]["\x74\151\164\154\145"];
}
return $QyYHy;
}
public function setSettings(array $dK4bD): void
{
$this->logger->debug(__FILE__, 153, "\123\x65\x74\x20\123\x65\x74\x74\x69\156\x67\163\x3a\x20\x25\x73", print_r($dK4bD, true));
$this->logger->debug(__FILE__, 154, "\123\x65\164\x74\151\x6e\x67\x73\x20\102\x65\146\x6f\162\145\72\x20\x25\x73", print_r($this->settings, true));
$this->settings = array_merge($this->settings, $dK4bD);
$this->logger->debug(__FILE__, 158, "\123\145\164\164\151\156\147\x73\x20\x41\x66\x74\145\x72\x3a\x20\45\163", print_r($this->settings, true));
if (false === empty($this->instance_id) && is_array($this->instance_settings)) {
$this->logger->debug(__FILE__, 161, "\x49\156\163\x74\x61\156\x63\145\40\123\145\x74\164\x69\156\x67\163\40\x42\145\146\157\x72\145\72\40\x25\163", print_r($this->instance_settings, true));
$this->instance_settings = array_merge($this->instance_settings, $dK4bD);
$this->logger->debug(__FILE__, 165, "\111\156\163\164\141\x6e\143\x65\40\123\145\164\164\151\156\147\163\40\x41\146\x74\x65\162\72\x20\45\x73", print_r($this->instance_settings, true));
}
}
protected function init(): void
{
parent::init();
$this->initRatesFormatter();
$this->multiVendorBridge = MultiVendorBridge::createInstance();
add_action($this->id . "\x5f\163\x65\164\x53\150\151\x70\x70\x69\x6e\147\115\x65\164\150\x6f\x64\123\145\164\x74\x69\156\x67\x73", [$this, "\163\145\x74\x53\145\164\164\x69\x6e\x67\x73"], 1, 1);
}
protected function initRatesFormatter(): void
{
$this->ratesFormatter = new RatesFormatter($this->logger);
}
protected function initFormFields(): void
{
parent::initFormFields();
$this->initInstanceFormFields();
}
protected function initInstanceFormFields(): void
{
$DERVI = $this->get_option("\163\150\151\160\x70\151\156\147\x5a\x6f\x6e\145\x46\151\x65\154\x64\163", []);
if (empty($DERVI) || false === is_array($DERVI)) {
return;
}
$xilgv = [];
if (in_array("\x6f\x72\x69\147\x69\x6e", $DERVI, true)) {
$xilgv += $this->settingsForm->getOriginFields($this->instance_settings["\157\x72\x69\x67\x69\x6e"]["\x63\x6f\x75\x6e\x74\x72\x79"] ?? null);
}
if (in_array("\142\x6f\x78\145\x73", $DERVI, true)) {
$xilgv += $this->settingsForm->getBoxesFields();
}
if (in_array("\x63\x61\162\162\x69\145\x72\x73", $DERVI, true)) {
$xilgv += $this->settingsForm->getCarriersFields();
}
if (in_array("\x73\145\162\166\x69\x63\x65\x73", $DERVI, true)) {
$xilgv += $this->settingsForm->getServicesFields();
}
if (false === empty($xilgv)) {
$this->instance_form_fields = ["\163\x68\x69\160\x70\x69\x6e\147\172\157\x6e\145\x5f\x6e\157\164\151\143\145\137\164\151\x74\x6c\145" => ["\x64\145\163\x63\162\x69\x70\x74\151\x6f\156" => sprintf("\74\144\x69\x76\40\x63\x6c\141\x73\163\75\x22\x6f\156\x65\x74\x65\141\155\x73\157\146\x74\167\x61\162\x65\x20\156\x6f\x74\x69\x63\145\x20\x6e\157\164\x69\143\145\55\x69\156\146\x6f\40\x69\x6e\154\151\156\x65\42\x3e\74\160\x3e\74\x73\x74\x72\157\x6e\147\76\x25\x73\x3c\57\163\164\162\157\156\147\76\74\x2f\x70\76\74\x2f\144\x69\166\x3e", __("\123\150\x69\160\x70\151\x6e\x67\40\x7a\157\x6e\x65\x20\163\x65\164\164\x69\x6e\x67\x73\40\167\x69\154\x6c\x20\157\x76\145\x72\x77\162\x69\x74\145\40\x67\x6c\157\x62\x61\x6c\x20\163\145\x74\x74\151\x6e\147\x73\x20\144\x65\146\x69\156\x65\144\40\151\156\40\164\150\x65\40\160\154\165\147\x69\x6e\x20\163\145\x74\164\151\156\147\x73\56", $this->id)), "\x74\x79\160\145" => "\x74\151\x74\154\145"]];
$this->instance_form_fields += $xilgv;
}
}
protected function syncSettings(): void
{
parent::syncSettings();
$dK4bD = $this->get_settings();
$this->ratesFormatter->withDisplayDeliveryTime("\171\145\x73" === ($dK4bD["\x64\151\x73\160\154\x61\171\x44\x65\154\x69\x76\145\x72\x79\x54\x69\155\145"] ?? "\156\157"))->withDisplayTrackingType("\x79\x65\163" === ($dK4bD["\144\151\163\160\154\x61\171\124\x72\141\143\153\x69\x6e\147\124\171\x70\145"] ?? "\x6e\157"))->withAddToDeliveryDays(intval($dK4bD["\x61\x64\x64\x54\x6f\104\145\x6c\151\166\x65\x72\171\x44\x61\171\163"] ?? 0))->withDeliveryTimeDescriptionTemplate(__("\x45\163\x74\x69\155\141\164\145\x64\x20\x64\x65\154\151\x76\145\162\x79\x20\151\x6e\x20\x7b\x64\x65\154\x69\x76\145\x72\171\137\144\141\x79\163\175\x20\x64\x61\171\x73", $this->id));
}
protected function prepareShippingRates(array $Hdu1c): array
{
$this->logger->debug(__FILE__, 278, "\x70\x72\x65\x70\141\x72\145\x53\x68\x69\x70\x70\151\x6e\x67\x52\x61\164\x65\163");
$Hdu1c = $this->ratesFilter->filter($Hdu1c);
$Hdu1c = $this->ratesFormatter->format($Hdu1c);
foreach ($Hdu1c as $M7w4L => &$gt2pR) {
$gt2pR["\x6d\x65\x74\141\x5f\x64\x61\x74\x61"] = $this->rateMetaDataBuilder->withService($M7w4L)->build();
gweMm:
}
Rlswu:
return $Hdu1c;
}
protected function getProFeatureSuffix(): string
{
if (!$this->plugin->isActivated()) {
return parent::getProFeatureSuffix();
}
return '';
}
protected function getProFeatureAttributes(): array
{
if (!$this->plugin->isActivated()) {
return parent::getProFeatureAttributes();
}
return [];
}
protected function getVendorAddress(int $tM2eU): array
{
if (empty($tM2eU)) {
return [];
}
return $this->multiVendorBridge->getVendorAddress($tM2eU);
}
protected function prepareParcel(array $xECMj, array $pLlsY): array
{
$this->logger->debug(__FILE__, 342, "\160\162\145\x70\x61\x72\145\120\141\162\x63\x65\x6c");
$pLlsY = parent::prepareParcel($xECMj, $pLlsY);
$pLlsY["\143\x61\162\x72\151\x65\x72\x73"] = $this->get_option("\143\141\x72\x72\x69\x65\x72\x73", []);
$pLlsY["\x63\157\144"] = $this->get_option("\x63\157\x64", "\x6e\x6f");
$pLlsY["\x63\x6f\144\137\155\x65\164\150\x6f\x64"] = $this->get_option("\x63\157\144\137\x6d\145\164\x68\157\144", '');
$pLlsY["\141\x6c\x63\x6f\150\x6f\154"] = false === empty($xECMj["\141\x6c\x63\x6f\x68\x6f\x6c"]);
$pLlsY["\x64\162\x79\x49\x63\145"] = false === empty($xECMj["\144\162\171\111\143\145"]);
$pLlsY["\166\145\x6e\144\x6f\162\137\151\x64"] = $pLlsY["\163\145\154\x6c\145\x72\x5f\x69\144"] = $tM2eU = $this->getPackageVendorId($xECMj);
$pLlsY["\x6f\x72\151\147\151\x6e"] = $this->getOrigin($tM2eU);
return $pLlsY;
}
protected function getPackageVendorId(array $xECMj): int
{
if ("\x6e\157" === $this->get_option("\165\163\x65\123\145\154\154\x65\162\101\x64\x64\162\x65\163\163", "\x6e\x6f")) {
return 0;
}
$tM2eU = $this->multiVendorBridge->getPackageVendorId($xECMj);
if (false === empty($tM2eU)) {
$this->logger->debug(__FILE__, 370, "\x46\x6f\165\156\144\x20" . $this->multiVendorBridge->getName() . "\40\x56\145\x6e\144\x6f\x72\x3a\40" . $tM2eU);
}
return $tM2eU;
}
protected function getOrigin(int $tM2eU): array
{
if (false === $this->adapter->getFeatures()->hasOriginFeature()) {
return [];
}
$Bj1yA = $this->getVendorAddress($tM2eU);
if (empty($Bj1yA)) {
$Bj1yA = $this->get_option("\x6f\162\x69\147\151\156");
}
$this->logger->debug(__FILE__, 394, "\x4f\x72\151\147\x69\156\x20\141\144\144\x72\x65\163\x73\72\x20\x25\x73", print_r($Bj1yA, true));
return $Bj1yA;
}
protected function getServiceMatches(array $xECMj): array
{
$jMNYP = new ServicesMatcher($this->logger);
$jMNYP->setSettings($this->get_settings());
$o910k = $jMNYP->getServiceMatches($xECMj["\x63\x6f\156\164\145\156\164\163"] ?? []);
$this->logger->debug(__FILE__, 412, "\101\x6c\154\x6f\167\145\144\40\x53\x65\x72\166\151\x63\145\163\x3a\x20\45\x73\54\40\x45\x6e\x61\142\x6c\145\144\40\142\x79\40\144\145\x66\x61\x75\154\164\72\40\45\x73", print_r($o910k, true), $this->areServicesEnabledByDefault() ? "\x79\x65\163" : "\156\x6f");
return $o910k;
}
public function is_available($xECMj)
{
$xECMj = $this->tryToFixPackage((array)$xECMj);
$this->loadVendorSettings($this->multiVendorBridge->getPackageVendorId($xECMj));
if (false === parent::is_available($xECMj)) {
return false;
}
$jqrTg = $this->getServiceMatches($xECMj);
if (false === $this->areServicesEnabledByDefault() && false === $this->hasAllowedServices($jqrTg)) {
$this->logger->debug(__FILE__, 436, "\x4e\157\40\163\145\162\166\151\143\x65\163\40\x61\x72\x65\x20\141\154\x6c\157\x77\145\x64\54\40\163\x6f\40\167\x65\x20\143\141\x6e\x20\156\157\x74\40\161\x75\x6f\164\x65\x20\x6c\151\x76\x65\40\x73\150\151\160\x70\151\156\x67\x20\162\x61\164\x65\x73");
return false;
}
$this->ratesFilter->setSettings(["\141\x6c\x6c\157\167\x65\144\x53\145\x72\x76\x69\x63\145\x73" => $jqrTg]);
return true;
}
protected function areServicesEnabledByDefault(): bool
{
return "\x79\145\163" === $this->get_option("\145\156\141\142\154\145\x53\x65\x72\166\x69\x63\145\x73") || empty($this->get_option("\163\145\x72\166\151\x63\145\x73"));
}
protected function loadVendorSettings(int $tM2eU): void
{
$this->logger->debug(__FILE__, 466, "\154\157\141\x64\x56\x65\x6e\144\x6f\162\x53\145\x74\164\x69\156\147\x73\54\x20\166\x65\156\x64\157\x72\111\x64\x3a\x20\x25\x64", $tM2eU);
$this->settings = apply_filters($this->id . "\x5f\163\145\164\x74\151\x6e\147\163", $this->originalSettings, $tM2eU);
if ($this->instance_id > 0) {
$this->instance_settings = apply_filters($this->id . "\137\x73\145\164\x74\151\156\147\163", $this->originalInstanceSettings, $tM2eU);
}
}
protected function hasAllowedServices(array $jqrTg): bool
{
$pKCXN = false;
foreach ($jqrTg as $LfMIP) {
if (false === empty($LfMIP)) {
$pKCXN = true;
goto S4u_k;
}
bYka9:
}
S4u_k:
return $pKCXN;
}
protected function initPackagePropertiesBuilder(): void
{
$this->packagePropertiesBuilder = new PackagePropertiesBuilderPro($this->logger);
}
protected function initRatesFilter(): void
{
$this->ratesFilter = new RatesFilterPro($this->logger);
}
}
Function Calls
None |
Stats
MD5 | 733f00882014d7161d1fd14e74e5bd5a |
Eval Count | 0 |
Decode Time | 59 ms |