andersondanilo/CnabPHP

View on GitHub

Showing 172 of 184 total issues

Avoid too many return statements within this method.
Open

                return 'CHEQUE DEVOLVIDO (NOTA 20 - TABELA 9)';
Severity: Major
Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return 'CHEQUE COMPENSADO';
    Severity: Major
    Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return 'Confirmação Recebimento Instrução Sustação de Protesto';
      Severity: Major
      Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return 'Estorno de Protesto';
        Severity: Major
        Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return 'ABATIMENTO CANCELADO';
          Severity: Major
          Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return 'INSTRUÇÕES REJEITADAS (NOTA 20 - TABELA 3) ';
            Severity: Major
            Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return 'ALTERAÇÃO/EXCLUSÃO DE DADOS REJEITADOS (NOTA 20 - TABELA 2)';
              Severity: Major
              Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return 'BAIXA POR TER SIDO PROTESTADO';
                Severity: Major
                Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return 'TARIFA DE EMISSÃO DE BOLETO/TARIFA DE ENVIO DE DUPLICATA';
                  Severity: Major
                  Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return 'TARIFA MENSAL BAIXAS EM BANCOS CORRESPONDENTES NA CARTEIRA';
                    Severity: Major
                    Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return 'TÍTULO SUSTADO JUDICIALMENTE';
                      Severity: Major
                      Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 30 mins to fix

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

                            public static function getBanco($codigo)
                            {
                                if ($codigo == self::BANCO_DO_BRASIL) {
                                    return array(
                                        'codigo_do_banco' => self::BANCO_DO_BRASIL,
                        Severity: Minor
                        Found in src/Cnab/Banco.php - 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