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

codestyle fix

This commit is contained in:
Sergey Chazov 2020-09-01 12:08:46 +03:00
parent 439081e902
commit 7ee518dcc1
10 changed files with 29 additions and 12 deletions

View file

@ -24,8 +24,6 @@ use Intaro\RetailCrm\Model\Api\Response\SmsVerification\SmsVerificationStatusReq
use Intaro\RetailCrm\Model\Api\Response\SmsVerification\SmsVerificationStatusResponse;
use RetailCrm\Http\Client;
use RetailCrm\Response\ApiResponse;
use smsverificationconfirm;
use smsverificationcreate;
/**
* PHP version 5.3

View file

@ -2,27 +2,30 @@
namespace Intaro\RetailCrm\Component\Factory;
use Bitrix\Main\Config\Option;
use Intaro\RetailCrm\Component\ApiClient\ClientAdapter;
use Intaro\RetailCrm\Component\ConfigProvider;
/**
* Class ClientFactory
* @package Intaro\RetailCrm\Component\Factory
*/
class ClientFactory
{
/**
* create ClientAdapter with current data for access to CRM
* Create ClientAdapter with current data for access to CRM
*
* @return \Intaro\RetailCrm\Component\ApiClient\ClientAdapter|null
* @throws \Bitrix\Main\ArgumentNullException
* @throws \Bitrix\Main\ArgumentOutOfRangeException
*/
public static function creacteClientAdapter(): ?ClientAdapter
{
$apiHost = Option::get('intaro.retailcrm', 'api_host');
$apiKey = Option::get('intaro.retailcrm', 'api_key');
$apiHost = ConfigProvider::getApiUrl();
$apiKey = ConfigProvider::getApiKey();
if (empty($apiHost) || empty($apiKey)) {
return null;
} else {
return new ClientAdapter($apiHost, $apiKey);
}
return new ClientAdapter($apiHost, $apiKey);
}
}

View file

@ -2,6 +2,9 @@
namespace Intaro\RetailCrm\Model\Api\Request\SmsVerification;
use Intaro\RetailCrm\Component\Json\Mapping;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
/**
* Class SmsVerificationConfirmRequest
*

View file

@ -3,6 +3,7 @@
namespace Intaro\RetailCrm\Model\Api\Request\SmsVerification;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Component\Json\Mapping;
/**
* Class SmsVerificationCreateRequest

View file

@ -3,6 +3,7 @@
namespace Intaro\RetailCrm\Model\Api\Response\SmsVerification;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Component\Json\Mapping;
/**
* Class SmsVerificationStatusRequest

View file

@ -3,6 +3,7 @@
namespace Intaro\RetailCrm\Model\Api\Response\SmsVerification;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Component\Json\Mapping;
/**
* Class SmsVerificationConfirmResponse

View file

@ -3,6 +3,7 @@
namespace Intaro\RetailCrm\Model\Api\Response\SmsVerification;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Component\Json\Mapping;
/**
* Class SmsVerificationCreateResponse

View file

@ -3,6 +3,7 @@
namespace Intaro\RetailCrm\Model\Api\Response\SmsVerification;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Component\Json\Mapping;
/**
* Class SmsVerificationStatusResponse

View file

@ -1,9 +1,13 @@
<?php
namespace Intaro\RetailCrm\Model\Api;
use Intaro\RetailCrm\Component\Json\Mapping;
/**
* Class SmsVerificationConfirm
* @package Intaro\RetailCrm\Model\Api
*/
class SmsVerificationConfirm extends AbstractApiModel
{
/**

View file

@ -1,9 +1,13 @@
<?php
namespace Intaro\RetailCrm\Model\Api;
use Intaro\RetailCrm\Component\Json\Mapping;
/**
* Class SmsVerificationCreate
* @package Intaro\RetailCrm\Model\Api
*/
class SmsVerificationCreate extends AbstractApiModel
{
/**