hipay/hipay-wallet-cashout-mirakl-integration

View on GitHub

Showing 114 of 114 total issues

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

    public function findAjax($first, $limit, $sortedColumn, $dir, $search, $custom)
Severity: Minor
Found in src/Entity/AbstractTableRepository.php - About 45 mins to fix

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

        public function __construct($miraklId, $hipayId, $paymentVoucher, $amount, $originAmount, $balance)
    Severity: Minor
    Found in src/Entity/LogOperations.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                              if ($(element).hasClass('multiselect-group')) {
                                                  // Remember group status.
                                                  currentGroup = element;
                                                  currentGroupVisible = showElement;
                                              }
      Severity: Major
      Found in web/js/bootstrap-multiselect.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                                if(showElement){
                                                  $(element).css('display', 'block');
                                                  $(element).removeClass('multiselect-filter-hidden');
                                                }
        Severity: Major
        Found in web/js/bootstrap-multiselect.js - About 45 mins to fix

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                          if (this.options.includeResetDivider) {
                              this.$ul.prepend($(this.options.templates.divider));
                          }
          Severity: Minor
          Found in web/js/bootstrap-multiselect.js and 1 other location - About 40 mins to fix
          web/js/bootstrap-multiselect.js on lines 1025..1027

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 48.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                          if (this.options.includeSelectAllDivider) {
                              this.$ul.prepend($(this.options.templates.divider));
                          }
          Severity: Minor
          Found in web/js/bootstrap-multiselect.js and 1 other location - About 40 mins to fix
          web/js/bootstrap-multiselect.js on lines 987..989

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 48.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

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

                  LoggerInterface $logger,
                  Processor $processor,
                  VendorManagerInterface $manager,
                  VendorInterface $operator,
                  VendorInterface $technical
          Severity: Minor
          Found in src/Command/Wallet/BankInfosCommand.php - About 35 mins to fix

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

                public function __construct($formBuilder, \Twig_Environment $twig, $translator, $parameters, $urlGenerator)
            Severity: Minor
            Found in src/Controller/SettingController.php - About 35 mins to fix

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

                      LoggerInterface $logger,
                      VendorProcessor $processor,
                      BatchRepository $batchManager,
                      VendorRepository $vendorManager,
                      LogVendorsRepository $logVendorsManager
              Severity: Minor
              Found in src/Command/Log/LogVendorsCountryCommand.php - About 35 mins to fix

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

                        LoggerInterface $logger,
                        VendorProcessor $processor,
                        BatchRepository $batchManager,
                        VendorRepository $vendorManager,
                        LogVendorsRepository $logVendorsManager
                Severity: Minor
                Found in src/Command/Log/LogVendorsRecoverCommand.php - About 35 mins to fix

                  Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                              init: function(element, valueAccessor, allBindings, viewModel, bindingContext) {
                  Severity: Minor
                  Found in web/js/bootstrap-multiselect.js - About 35 mins to fix

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

                            LogVendorsRepository $repo,
                            Serializer $serializer,
                            Translator $translator,
                            \Twig_Environment $twig,
                            $parameters
                    Severity: Minor
                    Found in src/Controller/LogVendorController.php - About 35 mins to fix

                      Function update has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                                  update: function(element, valueAccessor, allBindings, viewModel, bindingContext) {
                      Severity: Minor
                      Found in web/js/bootstrap-multiselect.js - About 35 mins to fix

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                                            } else if (data.statusTransferts.status == 3 || data.statusTransferts.status == 2 || data.statusTransferts.status == 4) {
                                                $('td', row).eq(5).addClass('success');
                                            } else if (data.statusTransferts.status == -1) {
                                                $('td', row).eq(5).addClass('info');
                                                $('td', row).eq(6).addClass('info');
                        Severity: Minor
                        Found in web/js/custom.js and 1 other location - About 35 mins to fix
                        web/js/custom.js on lines 142..144

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 46.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                                            } else if (data.statusWithDrawal.status == 6 || data.statusWithDrawal.status == 5 || data.statusWithDrawal.status == 2) {
                                                $('td', row).eq(6).addClass('success');
                                            }
                        Severity: Minor
                        Found in web/js/custom.js and 1 other location - About 35 mins to fix
                        web/js/custom.js on lines 147..152

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 46.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Avoid too many return statements within this method.
                        Open

                                    return $app['orm.em']->getRepository('HiPay\\Wallet\\Mirakl\\Integration\\Entity\\Batch');
                        Severity: Major
                        Found in src/ServiceProvider/RepositoriesServiceProvider.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return $this->translator->trans('invalid.amount');
                          Severity: Major
                          Found in src/Controller/LogOperationsController.php - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                                return options.length + ' ' + this.nSelectedText;
                            Severity: Major
                            Found in web/js/bootstrap-multiselect.js - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return $this->translator->trans('withdraw.request.success');
                              Severity: Major
                              Found in src/Controller/LogOperationsController.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return $this->translator->trans('adjusted.operations');
                                Severity: Major
                                Found in src/Controller/LogOperationsController.php - About 30 mins to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language