1
0
Fork 0
mirror of synced 2025-04-20 01:21:01 +00:00

fix codestyle

This commit is contained in:
Sergey Chazov 2020-08-31 13:41:45 +03:00 committed by Павел
parent f6ac6945ca
commit 72842a3774
3 changed files with 9 additions and 8 deletions

View file

@ -4,5 +4,3 @@ $filePath = $_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/modules/intaro.retailcrm/lib
if (file_exists($filePath)) {
require_once($filePath);
}

View file

@ -37,8 +37,8 @@ if (class_exists('intaro_retailcrm')) {
class intaro_retailcrm extends CModule
{
public const LP_ORDER_GROUP_NAME = 'Программа лояльности';
public const BONUS_COUNT = 'Количество бонусов';
public const LP_ORDER_GROUP_NAME = 'Программа лояльности';
public const BONUS_COUNT = 'Количество бонусов';
public const BONUS_PAY_SYSTEM_NAME = 'Оплата бонусами';
public const BONUS_PAY_SYSTEM_CODE = 'retailcrmbonus';
public const BONUS_PAY_SYSTEM_DESCRIPTION = 'Оплата бонусами программы лояльности retailCRM';
@ -239,6 +239,7 @@ class intaro_retailcrm extends CModule
$this->addBonusPaySystem();
$this->addLPUserFields();
$this->addLPEvents();
try {
$this->addLPOrderProps();
} catch (ObjectPropertyException | ArgumentException | SystemException $e) {
@ -1296,7 +1297,9 @@ class intaro_retailcrm extends CModule
public function CopyFiles(): void
{
$path_from = $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/' . $this->MODULE_ID . '/install';
$path_from = $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/' . $this->MODULE_ID . '/install';
$saleSystemPath = COption::GetOptionString('sale', 'path2user_ps_files');
CopyDirFiles(
$path_from . '/export',
$_SERVER['DOCUMENT_ROOT'],
@ -1304,7 +1307,6 @@ class intaro_retailcrm extends CModule
true,
false
);
$saleSystemPath = COption::GetOptionString('sale', 'path2user_ps_files');
CopyDirFiles(
$path_from . '/export_sale_payment',
$_SERVER['DOCUMENT_ROOT'] . $saleSystemPath,
@ -1567,7 +1569,7 @@ class intaro_retailcrm extends CModule
'PERSON_TYPE_ID' => $personId,
'NAME' => self::LP_ORDER_GROUP_NAME,
];
$result = OrderPropsGroupTable::add($groupFields);
$result = OrderPropsGroupTable::add($groupFields);
return $result->getId();
}
@ -1673,6 +1675,7 @@ class intaro_retailcrm extends CModule
try {
$events = ToModuleRepository::getCollectionByWhere($select, $where);
if ($events !== null && count($events) === 0) {
$eventManager->registerEventHandler(
$event['FROM_MODULE'],

View file

@ -93,6 +93,6 @@ class EventsHandlers
public function OnSaleComponentOrderOneStepProcessHandler($arResult, $arUserResult, $arParams)
{
AddMessage2Log('OnSaleComponentOrderOneStepProcessHandler work! '. $arUserResult. $arParams);
return $arResult;
return $arResult;
}
}