hipay/hipay-wallet-cashout-mirakl-library

View on GitHub

Showing 83 of 101 total issues

Method transferValidation has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function transferValidation($transferId, $status, $notificationType)
    {
        $operation = $this->operationManager->findOneByTransferId($transferId);

        if (!$operation) {
Severity: Minor
Found in src/Notification/Handler.php - About 1 hr to fix

    Method process has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    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);
    Severity: Minor
    Found in src/Cashout/Initializer.php - About 1 hr to fix

      Method __construct has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              $baseSoapUrl,
              $baseRestUrl,
              $login,
              $password,
              $entity,
      Severity: Major
      Found in src/Api/HiPay.php - About 1 hr to fix

        Method create has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                $miraklId,
                $hipayId,
                $login,
                $statusWalletAccount,
                $status,
        Severity: Major
        Found in src/Notification/Model/LogVendorsManagerInterface.php - About 1 hr to fix

          Method executeRest has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private function executeRest($command, $parameters = array())
              {
                  $this->restClient->getConfig()->setPath(
                      'request.options/headers/x-professional-client-origin',
                      'hipay-mirakl-connector-v1'
          Severity: Minor
          Found in src/Api/HiPay.php - About 1 hr to fix

            Method callSoap has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                protected function callSoap($name, array $parameters)
                {
                    $parameters = $this->mergeLoginParametersSoap($parameters);
                    //Make the call
                    $response = $this->getClient($name)->$name(
            Severity: Minor
            Found in src/Api/HiPay.php - About 1 hr to fix

              Method logOperation has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private function logOperation($miraklId, $paymentVoucherNumber, $status, $message)
                  {
                      $logOperation = $this->logOperationsManager->findByMiraklIdAndPaymentVoucherNumber(
                          $miraklId,
                          $paymentVoucherNumber
              Severity: Minor
              Found in src/Notification/Handler.php - About 1 hr to fix

                Method createVendor has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    protected function createVendor(
                        $email,
                        $walletId,
                        $walletSpaceId,
                        $identified,
                Severity: Minor
                Found in src/Vendor/Processor.php - About 1 hr to fix

                  Method create has 8 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          $email,
                          $miraklId,
                          $hipayId,
                          $hipayUserSpaceId,
                          $identified,
                  Severity: Major
                  Found in src/Vendor/Model/VendorManagerInterface.php - About 1 hr to fix

                    Method __construct has 8 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            EventDispatcherInterface $dispatcher,
                            LoggerInterface $logger,
                            Factory $factory,
                            VendorInterface $operatorAccount,
                            VendorInterface $technicalAccount,
                    Severity: Major
                    Found in src/Cashout/Transfer.php - About 1 hr to fix

                      Method createVendor has 8 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              $email,
                              $walletId,
                              $walletSpaceId,
                              $identified,
                              $miraklId,
                      Severity: Major
                      Found in src/Vendor/Processor.php - About 1 hr to fix

                        Method getInvoices has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                DateTime $startDate = null,
                                DateTime $endDate = null,
                                $max = self::MIRAKL_API_MAX_PAGINATE,
                                $offset = self::MIRAKL_API_DEFAULT_OFFSET_PAGINATE,
                                $shopId = null,
                        Severity: Major
                        Found in src/Api/Mirakl.php - About 50 mins to fix

                          Method setNewStatus has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  $operationId,
                                  $operation,
                                  $successStatus,
                                  $failStatus,
                                  $validatedStatus,
                          Severity: Major
                          Found in src/Cashout/TransactionStatus.php - About 50 mins to fix

                            Method __construct has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    EventDispatcherInterface $dispatcher,
                                    LoggerInterface $logger,
                                    OperationManager $operationManager,
                                    VendorManagerInterface $vendorManager,
                                    LogVendorsManagerInterface $logVendorManager,
                            Severity: Major
                            Found in src/Notification/Handler.php - About 50 mins to fix

                              Method __construct has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                      EventDispatcherInterface $dispatcher,
                                      LoggerInterface $logger,
                                      Factory $factory,
                                      OperationManager $operationManager,
                                      VendorManager $vendorManager,
                              Severity: Major
                              Found in src/Cashout/AbstractOperationProcessor.php - About 50 mins to fix

                                Method createOperation has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                        $amount,
                                        $originAmount,
                                        DateTime $cycleDate,
                                        $paymentVoucher,
                                        $vendor,
                                Severity: Major
                                Found in src/Cashout/Initializer.php - About 50 mins to fix

                                  Method __construct has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          EventDispatcherInterface $dispatcher,
                                          LoggerInterface $logger,
                                          Factory $factory,
                                          OperationManager $operationManager,
                                          VendorManager $vendorManager,
                                  Severity: Major
                                  Found in src/Cashout/TransactionStatus.php - About 50 mins to fix

                                    Method __construct has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            EventDispatcherInterface $dispatcher,
                                            LoggerInterface $logger,
                                            Factory $factory,
                                            OperationManager $operationManager,
                                            VendorManager $vendorManager,
                                    Severity: Major
                                    Found in src/Cashout/Withdraw.php - About 50 mins to fix

                                      Method other has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              $amount,
                                              $currency,
                                              $label,
                                              $hipayId,
                                              $date,
                                      Severity: Minor
                                      Found in src/Notification/Handler.php - About 45 mins to fix

                                        Method uploadDocument has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                                $userSpaceId,
                                                $accountId,
                                                $documentType,
                                                $fileName,
                                                \DateTime $validityDate = null,
                                        Severity: Minor
                                        Found in src/Api/HiPay.php - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language