mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
Fixed CS
This commit is contained in:
parent
7ade3ca00b
commit
32fd10247b
2
Makefile
2
Makefile
@ -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
@ -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)
|
||||
{
|
||||
|
@ -83,11 +83,11 @@ class RetailcrmHttpClient
|
||||
*
|
||||
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
|
||||
*
|
||||
* @return RetailcrmApiResponse
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws CurlException
|
||||
* @throws InvalidJsonException
|
||||
*
|
||||
* @return RetailcrmApiResponse
|
||||
*/
|
||||
public function makeRequest(
|
||||
$path,
|
||||
|
@ -208,9 +208,9 @@ class RetailcrmCustomerSwitcherState
|
||||
/**
|
||||
* Throws an exception if state is not valid
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function validate()
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user