This commit is contained in:
max-baranikov 2022-09-09 12:47:47 +03:00 committed by GitHub
parent 7ade3ca00b
commit 32fd10247b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 173 additions and 170 deletions

View File

@ -55,6 +55,8 @@ endif
lint:
php-cs-fixer fix --config=$(ROOT_DIR)/.php-cs-fixer.php -v
lint-docker:
docker run --rm -it -w=/app -v ${PWD}:/app oskarstark/php-cs-fixer-ga:latest --config=.php-cs-fixer.php -v
test:
ifeq ($(COMPOSERV1),1)

File diff suppressed because it is too large Load Diff

View File

@ -106,9 +106,9 @@ class RetailcrmApiResponse implements \ArrayAccess
* @param string $name method name
* @param mixed $arguments method parameters
*
* @throws \InvalidArgumentException
*
* @return mixed
*
* @throws \InvalidArgumentException
*/
public function __call($name, $arguments)
{
@ -127,9 +127,9 @@ class RetailcrmApiResponse implements \ArrayAccess
*
* @param string $name property name
*
* @throws \InvalidArgumentException
*
* @return mixed
*
* @throws \InvalidArgumentException
*/
public function __get($name)
{
@ -146,9 +146,9 @@ class RetailcrmApiResponse implements \ArrayAccess
* @param mixed $offset offset
* @param mixed $value value
*
* @throws \BadMethodCallException
*
* @return void
*
* @throws \BadMethodCallException
*/
public function offsetSet($offset, $value)
{
@ -160,9 +160,9 @@ class RetailcrmApiResponse implements \ArrayAccess
*
* @param mixed $offset offset
*
* @throws \BadMethodCallException
*
* @return void
*
* @throws \BadMethodCallException
*/
public function offsetUnset($offset)
{
@ -186,9 +186,9 @@ class RetailcrmApiResponse implements \ArrayAccess
*
* @param mixed $offset offset
*
* @throws \InvalidArgumentException
*
* @return mixed
*
* @throws \InvalidArgumentException
*/
public function offsetGet($offset)
{

View File

@ -83,11 +83,11 @@ class RetailcrmHttpClient
*
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*
* @return RetailcrmApiResponse
*
* @throws \InvalidArgumentException
* @throws CurlException
* @throws InvalidJsonException
*
* @return RetailcrmApiResponse
*/
public function makeRequest(
$path,

View File

@ -208,9 +208,9 @@ class RetailcrmCustomerSwitcherState
/**
* Throws an exception if state is not valid
*
* @throws \InvalidArgumentException
*
* @return void
*
* @throws \InvalidArgumentException
*/
public function validate()
{

View File

@ -227,6 +227,7 @@ class RetailCRMTest extends RetailcrmTestCase
/**
* @param $newOrder
*
* @dataProvider dataProvider
*/
public function testHookActionOrderStatusPostUpdate($newOrder)
@ -281,6 +282,7 @@ class RetailCRMTest extends RetailcrmTestCase
/**
* @param $ordersGet
*
* @dataProvider ordersGetDataProvider
*/
public function testHookActionPaymentCCAdd($ordersGet)