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: lint:
php-cs-fixer fix --config=$(ROOT_DIR)/.php-cs-fixer.php -v 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: test:
ifeq ($(COMPOSERV1),1) 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 string $name method name
* @param mixed $arguments method parameters * @param mixed $arguments method parameters
* *
* @throws \InvalidArgumentException
*
* @return mixed * @return mixed
*
* @throws \InvalidArgumentException
*/ */
public function __call($name, $arguments) public function __call($name, $arguments)
{ {
@ -127,9 +127,9 @@ class RetailcrmApiResponse implements \ArrayAccess
* *
* @param string $name property name * @param string $name property name
* *
* @throws \InvalidArgumentException
*
* @return mixed * @return mixed
*
* @throws \InvalidArgumentException
*/ */
public function __get($name) public function __get($name)
{ {
@ -146,9 +146,9 @@ class RetailcrmApiResponse implements \ArrayAccess
* @param mixed $offset offset * @param mixed $offset offset
* @param mixed $value value * @param mixed $value value
* *
* @throws \BadMethodCallException
*
* @return void * @return void
*
* @throws \BadMethodCallException
*/ */
public function offsetSet($offset, $value) public function offsetSet($offset, $value)
{ {
@ -160,9 +160,9 @@ class RetailcrmApiResponse implements \ArrayAccess
* *
* @param mixed $offset offset * @param mixed $offset offset
* *
* @throws \BadMethodCallException
*
* @return void * @return void
*
* @throws \BadMethodCallException
*/ */
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
@ -186,9 +186,9 @@ class RetailcrmApiResponse implements \ArrayAccess
* *
* @param mixed $offset offset * @param mixed $offset offset
* *
* @throws \InvalidArgumentException
*
* @return mixed * @return mixed
*
* @throws \InvalidArgumentException
*/ */
public function offsetGet($offset) public function offsetGet($offset)
{ {

View File

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

View File

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

View File

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