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:
|
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
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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,
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user