Showing 83 of 101 total issues
Method transferValidation
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function transferValidation($transferId, $status, $notificationType)
{
$operation = $this->operationManager->findOneByTransferId($transferId);
if (!$operation) {
Method process
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(DateTime $startDate, DateTime $endDate, DateTime $cycleDate)
{
$this->logger->info('Control Mirakl Settings', array('miraklId' => null, "action" => "Operations creation"));
// control mirakl settings
$boolControl = $this->getControlMiraklSettings($this->documentTypes);
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$baseSoapUrl,
$baseRestUrl,
$login,
$password,
$entity,
Method create
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$miraklId,
$hipayId,
$login,
$statusWalletAccount,
$status,
Method executeRest
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function executeRest($command, $parameters = array())
{
$this->restClient->getConfig()->setPath(
'request.options/headers/x-professional-client-origin',
'hipay-mirakl-connector-v1'
Method callSoap
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function callSoap($name, array $parameters)
{
$parameters = $this->mergeLoginParametersSoap($parameters);
//Make the call
$response = $this->getClient($name)->$name(
Method logOperation
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function logOperation($miraklId, $paymentVoucherNumber, $status, $message)
{
$logOperation = $this->logOperationsManager->findByMiraklIdAndPaymentVoucherNumber(
$miraklId,
$paymentVoucherNumber
Method createVendor
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function createVendor(
$email,
$walletId,
$walletSpaceId,
$identified,
Method create
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$email,
$miraklId,
$hipayId,
$hipayUserSpaceId,
$identified,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EventDispatcherInterface $dispatcher,
LoggerInterface $logger,
Factory $factory,
VendorInterface $operatorAccount,
VendorInterface $technicalAccount,
Method createVendor
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$email,
$walletId,
$walletSpaceId,
$identified,
$miraklId,
Method getInvoices
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
DateTime $startDate = null,
DateTime $endDate = null,
$max = self::MIRAKL_API_MAX_PAGINATE,
$offset = self::MIRAKL_API_DEFAULT_OFFSET_PAGINATE,
$shopId = null,
Method setNewStatus
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$operationId,
$operation,
$successStatus,
$failStatus,
$validatedStatus,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EventDispatcherInterface $dispatcher,
LoggerInterface $logger,
OperationManager $operationManager,
VendorManagerInterface $vendorManager,
LogVendorsManagerInterface $logVendorManager,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EventDispatcherInterface $dispatcher,
LoggerInterface $logger,
Factory $factory,
OperationManager $operationManager,
VendorManager $vendorManager,
Method createOperation
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$amount,
$originAmount,
DateTime $cycleDate,
$paymentVoucher,
$vendor,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EventDispatcherInterface $dispatcher,
LoggerInterface $logger,
Factory $factory,
OperationManager $operationManager,
VendorManager $vendorManager,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EventDispatcherInterface $dispatcher,
LoggerInterface $logger,
Factory $factory,
OperationManager $operationManager,
VendorManager $vendorManager,
Method other
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$amount,
$currency,
$label,
$hipayId,
$date,
Method uploadDocument
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$userSpaceId,
$accountId,
$documentType,
$fileName,
\DateTime $validityDate = null,