hipay/hipay-wallet-cashout-mirakl-integration

View on GitHub

Showing 83 of 114 total issues

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

              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

                        Avoid too many return statements within this method.
                        Open

                                        return $this->translator->trans('transfer.request.requested');
                        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('withdraw.payment.blocked');
                          Severity: Major
                          Found in src/Controller/LogOperationsController.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return $app['orm.em']->getRepository('HiPay\\Wallet\\Mirakl\\Integration\\Entity\\LogVendors');
                            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('transfer.vendor.disabled');
                              Severity: Major
                              Found in src/Controller/LogOperationsController.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return "";
                                Severity: Major
                                Found in src/Controller/LogOperationsController.php - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                      return selected.substr(0, selected.length - this.delimiterText.length);
                                  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('transfer.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('withdraw.vendor.disabled');
                                      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('transfer.request.negative');
                                        Severity: Major
                                        Found in src/Controller/LogOperationsController.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language