codestyle fix
This commit is contained in:
parent
722cb9aafb
commit
1c86b22730
2 changed files with 13 additions and 13 deletions
|
@ -543,7 +543,17 @@ class RetailcrmConfigProvider
|
|||
{
|
||||
return COption::GetOptionString("main", "new_user_phone_required") === 'Y';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return integration_delivery option
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getCrmIntegrationDelivery()
|
||||
{
|
||||
return static::getUnserializedOption(RetailcrmConstants::CRM_INTEGRATION_DELIVERY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wraps Bitrix COption::GetOptionString(...)
|
||||
*
|
||||
|
@ -604,14 +614,4 @@ class RetailcrmConfigProvider
|
|||
{
|
||||
return empty($value) && $value !== 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return integration_delivery option
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getCrmIntegrationDelivery()
|
||||
{
|
||||
return unserialize(COption::GetOptionString(RetailcrmConstants::MODULE_ID, RetailcrmConstants::CRM_INTEGRATION_DELIVERY, 0));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,10 +12,10 @@ class RetailCrmService
|
|||
*/
|
||||
public static function unsetIntegrationDeliveryFields(array $order): array
|
||||
{
|
||||
$integrationDelivery = RetailcrmConfigProvider::getCrmIntegrationDelivery();
|
||||
$integrationDelivery = RetailcrmConfigProvider::getCrmIntegrationDelivery();
|
||||
|
||||
if (isset($order['delivery']['code'])) {
|
||||
$deliveryCode = $order['delivery']['code'];
|
||||
$deliveryCode = $order['delivery']['code'];
|
||||
|
||||
if (!empty($integrationDelivery[$deliveryCode])
|
||||
&& $integrationDelivery[$deliveryCode] !== 'sdek'
|
||||
|
|
Loading…
Add table
Reference in a new issue