hipay/hipay-wallet-cashout-mirakl-integration

View on GitHub

Showing 83 of 114 total issues

Method execute has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function execute(InputInterface $input, OutputInterface $output)
    {

        echo '<div class="alert alert-dismissible alert-info">Backup data </div>';

Severity: Minor
Found in src/Command/App/UpdateCommand.php - About 1 hr to fix

    Method generateForm has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function generateForm()
        {
            $default = array(
                '_username' => '',
                '_password' => '',
    Severity: Minor
    Found in src/Controller/LoginController.php - About 1 hr to fix

      Method generateReRunForm has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private function generateReRunForm()
          {
      
              $default = array(
                  'batch' => array(),
      Severity: Minor
      Found in src/Controller/SettingController.php - About 1 hr to fix

        Method configure has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            protected function configure()
            {
                $this->setName('cashout:generate')
                    ->setDescription('Generate the cashout operations')
                    ->addOption(
        Severity: Minor
        Found in src/Command/Cashout/GenerateCommand.php - About 1 hr to fix

          Method execute has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              protected function execute(InputInterface $input, OutputInterface $output)
              {
                  $batch = new Batch($this->getName());
                  $this->batchManager->save($batch);
          
          
          Severity: Minor
          Found in src/Command/Cashout/GenerateCommand.php - About 1 hr to fix

            Method prepareAjaxRequest has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                protected function prepareAjaxRequest($queryBuilder, $search, $custom)
                {
            
                    if (!empty($search)) {
                        $queryBuilder->where(
            Severity: Minor
            Found in src/Entity/LogGeneralRepository.php - About 1 hr to fix

              Method getStatusLabel has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private function getStatusLabel($status)
                  {
                      switch ($status) {
                          case Status::WITHDRAW_FAILED:
                              return $this->translator->trans('withdraw.request.failed');
              Severity: Minor
              Found in src/Controller/LogOperationsController.php - About 1 hr to fix

                Method getDefaultSettingsParams has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private function getDefaultSettingsParams()
                    {
                        $reRunForm = $this->generateReRunForm();
                
                        $settingsForm = $this->generateSettingsForm();
                Severity: Minor
                Found in src/Controller/SettingController.php - About 1 hr to fix

                  Function buildSelectAll has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          buildSelectAll: function() {
                              if (typeof this.options.selectAllValue === 'number') {
                                  this.options.selectAllValue = this.options.selectAllValue.toString();
                              }
                  
                  
                  Severity: Minor
                  Found in web/js/bootstrap-multiselect.js - About 1 hr to fix

                    Function select has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            select: function(selectValues, triggerOnChange) {
                                if(!$.isArray(selectValues)) {
                                    selectValues = [selectValues];
                                }
                    
                    
                    Severity: Minor
                    Found in web/js/bootstrap-multiselect.js - About 1 hr to fix

                      Method reRunAction has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function reRunAction(Request $request)
                          {
                              $reRunForm = $this->generateReRunForm();
                      
                              $settingsForm = $this->generateSettingsForm();
                      Severity: Minor
                      Found in src/Controller/SettingController.php - About 1 hr to fix

                        Method processVendors has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private function processVendors()
                            {
                                $vendors = $this->vendorManager->findAll();
                        
                                $logs = array();
                        Severity: Minor
                        Found in src/Command/Log/LogVendorsRecoverCommand.php - About 1 hr to fix

                          Function buttonText has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                      buttonText: function(options, select) {
                                          if (this.disabledText.length > 0
                                                  && (select.prop('disabled') || (options.length == 0 && this.disableIfEmpty)))  {
                          
                                              return this.disabledText;
                          Severity: Minor
                          Found in web/js/bootstrap-multiselect.js - About 1 hr to fix

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

                                protected function prepareAjaxData($data)
                                {
                                    foreach ($data as $key => $logRow) {
                                        $data[$key]['startedAt'] = $logRow['startedAt']->format('Y-m-d H:i:s');
                            
                            
                            Severity: Minor
                            Found in src/Controller/BatchController.php - About 1 hr to fix

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

                                  public function getCycleDate(array $cycleDays, DateTime $cronDate)
                                  {
                                      $currentDay = (int) date('j', $cronDate->getTimestamp());
                                      $currentMonth = (int) date('n', $cronDate->getTimestamp());
                                      $currentYear = (int) date('Y', $cronDate->getTimestamp());
                              Severity: Minor
                              Found in src/Command/Cashout/GenerateCommand.php - About 1 hr to fix

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

                                        LoggerInterface $logger,
                                        CashoutInitializer $processor,
                                        array $cycleDays,
                                        $cycleHour,
                                        $cycleMinute,
                                Severity: Major
                                Found in src/Command/Cashout/GenerateCommand.php - About 1 hr to fix

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

                                          $miraklId = null,
                                          $hipayId = null,
                                          $login = null,
                                          $statusWalletAccount = null,
                                          $status = null,
                                  Severity: Major
                                  Found in src/Entity/LogVendors.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/Entity/LogVendorsRepository.php - About 1 hr to fix

                                      Method register has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function register(Application $app)
                                          {
                                              $app['vendors.repository'] = $app->share(function ($app) {
                                                  return $app['orm.em']->getRepository('HiPay\\Wallet\\Mirakl\\Integration\\Entity\\Vendor');
                                              });
                                      Severity: Minor
                                      Found in src/ServiceProvider/RepositoriesServiceProvider.php - About 1 hr to fix

                                        Function deselect has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                deselect: function(deselectValues, triggerOnChange) {
                                                    if(!$.isArray(deselectValues)) {
                                                        deselectValues = [deselectValues];
                                                    }
                                        
                                        
                                        Severity: Minor
                                        Found in web/js/bootstrap-multiselect.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language