pagseguro/magento2

View on GitHub

Showing 261 of 385 total issues

Avoid too many return statements within this method.
Open

                    return 'Cartão de crédito Sorocred';
Severity: Major
Found in Helper/Data.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return false;
    Severity: Major
    Found in Helper/Data.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return 'Cartão de crédito VALECARD';
      Severity: Major
      Found in Helper/Data.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                            return 'Cartão de crédito Up Policard';
        Severity: Major
        Found in Helper/Data.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                              return 'Boleto Bradesco';
          Severity: Major
          Found in Helper/Data.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return $code;
            Severity: Major
            Found in Helper/Data.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                  return 'Cancelada';
              Severity: Major
              Found in Helper/Data.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                    return 'Devolvida';
                Severity: Major
                Found in Helper/Data.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                      return 'Doação pública';
                  Severity: Major
                  Found in Helper/Data.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                        return 'Pagamento pré aprovado';
                    Severity: Major
                    Found in Helper/Data.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                          return 'Validador';
                      Severity: Major
                      Found in Helper/Data.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return $this->_redirect(sprintf('%s%s', $this->baseUrl(), 'pagseguro/payment/failure'));
                        Severity: Major
                        Found in Controller/Payment/Request.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                              return 'Em disputa';
                          Severity: Major
                          Found in Helper/Data.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                return 'Em Contestação';
                            Severity: Major
                            Found in Helper/Data.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                                  return 'Cartão de crédito Banese Card';
                              Severity: Major
                              Found in Helper/Data.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                    return 'Débito online Bradesco';
                                Severity: Major
                                Found in Helper/Data.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                      return 'Campanha bônus';
                                  Severity: Major
                                  Found in Helper/Data.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                        return $transactionTypeCode;
                                    Severity: Major
                                    Found in Helper/Data.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                          return 'Repasse de bônus';
                                      Severity: Major
                                      Found in Helper/Data.php - About 30 mins to fix

                                        Function dateMask has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                        function dateMask(date, fieldName) {
                                          var mydate = '';
                                          var field = document.getElementById(fieldName);
                                          mydate = mydate + date;
                                          if (mydate.length === 2 && event.keyCode !== 8) {
                                        Severity: Minor
                                        Found in view/adminhtml/web/js/public.js - About 25 mins to fix

                                        Cognitive Complexity

                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                        A method's cognitive complexity is based on a few simple rules:

                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                        • Code is considered more complex for each "break in the linear flow of the code"
                                        • Code is considered more complex when "flow breaking structures are nested"

                                        Further reading

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language