andersondanilo/CnabPHP

View on GitHub
src/Cnab/Retorno/Cnab400/Detalhe.php

Summary

Maintainability
F
1 wk
Test Coverage
F
0%

Function getCodigoNome has a Cognitive Complexity of 129 (exceeds 5 allowed). Consider refactoring.
Open

    public function getCodigoNome()
    {
        $codigo = $this->getCodigo();

        if (\Cnab\Banco::BRADESCO == $this->_codigo_banco) {
Severity: Minor
Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 2 days 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

Method getCodigoNome has 254 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getCodigoNome()
    {
        $codigo = $this->getCodigo();

        if (\Cnab\Banco::BRADESCO == $this->_codigo_banco) {
Severity: Major
Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 1 day to fix

    File Detalhe.php has 493 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace Cnab\Retorno\Cnab400;
    
    class Detalhe extends \Cnab\Format\Linha implements \Cnab\Retorno\IDetalhe
    Severity: Minor
    Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 7 hrs to fix

      Detalhe has 28 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Detalhe extends \Cnab\Format\Linha implements \Cnab\Retorno\IDetalhe
      {
          public $_codigo_banco;
      
          public function __construct(\Cnab\Retorno\IArquivo $arquivo)
      Severity: Minor
      Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 3 hrs to fix

        Method getAlegacaoPagador has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getAlegacaoPagador()
            {
                // @TODO: implementar funçao getAlegacaoPagador nos outros bancos
                if ($this->_codigo_banco == 341) {
                    if ($this->getCodigo() == 25) {
        Severity: Minor
        Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 1 hr to fix

          Method getDescricaoLiquidacao has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function getDescricaoLiquidacao()
              {
                  // @TODO: Usar YAML (cnab_yaml) para criar tabela de descrição
                  $codigoLiquidacao = $this->getCodigoLiquidacao();
                  $tabela = array();
          Severity: Minor
          Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 1 hr to fix

            Function getAlegacaoPagador has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getAlegacaoPagador()
                {
                    // @TODO: implementar funçao getAlegacaoPagador nos outros bancos
                    if ($this->_codigo_banco == 341) {
                        if ($this->getCodigo() == 25) {
            Severity: Minor
            Found in src/Cnab/Retorno/Cnab400/Detalhe.php - About 1 hr 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

            Avoid too many return statements within this method.
            Open

                            return 'Abatimento Concedido';
            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 'LIQUIDAÇÃO NORMAL';
              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 'CUSTAS DE EDITAL';
                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 OCORRÊNCIAS';
                  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 'ENTRADA REJEITADA CARNÊ (NOTA 20 – TABELA 1)';
                    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 'Acerto dos dados do rateio de Crédito';
                      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 da Opção de Protesto para Devolução';
                        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 'Liquidação';
                          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 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 CONCEDIDO ';
                              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 'BAIXAS REJEITADAS (NOTA 20 - TABELA 4)';
                                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 RECEBIMENTO DE INSTRUÇÃO DE NÃO PROTESTAR';
                                  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 REF A ENTRADAS 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 'BAIXA POR CRÉDITO EM C/C ATRAVÉS DO SISPAG SEM TÍTULO CORRESPONDENTE';
                                      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 DE ENTRADA NA COBRANÇA SIMPLES – ENTRADA NÃO ACEITA NA COBRANÇA CONTRATUAL';
                                        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 'Em Ser - Arquivo de Títulos pendentes';
                                          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 'Sustado judicial';
                                            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 'DÉBITO MENSAL DE TARIFAS – OUTRAS OCORRÊNCIAS';
                                              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 DE LIQUIDAÇÕES 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 'Acerto de Depositária (sem motivo)';
                                                  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 com Reemissão de Bloqueto Confirmada';
                                                    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 enviado para Cartório';
                                                      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 'Transferência de Carteira/Entrada';
                                                        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 'Transferência de Carteira/Baixa';
                                                          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 'Rejeição do Título – Cód. Rejeição informado nas POS 80 a 82';
                                                            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 'LIQUIDAÇÃO EM CARTÓRIO ';
                                                              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 'EM SER (SÓ NO RETORNO MENSAL)';
                                                                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 'VENCIMENTO ALTERADO ';
                                                                  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 ENVIADO A CARTÓRIO/TARIFA';
                                                                    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ÇÃO DE PROTESTO REJEITADA / SUSTADA / PENDENTE (NOTA 20 - TABELA 7)';
                                                                      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 EXTRATO POSIÇÃO (B40X)';
                                                                        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 'CUSTAS DE SUSTAÇÃO';
                                                                          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 DE EMISSÃO DE BOLETO/TARIFA MENSAL 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 'Confirmação Receb. Inst. 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 'Alteração de Outros Dados Rejeitados';
                                                                                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ção Rejeitada';
                                                                                  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 Pedido Alteração Outros Dados';
                                                                                    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 'Desagendamento do débito automático';
                                                                                      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 'Cancelamento dos dados do rateio';
                                                                                        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 'Entrada Confirmada';
                                                                                          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 'ENTRADA CONFIRMADA COM POSSIBILIDADE DE MENSAGEM (NOTA 20 – TABELA 10) ';
                                                                                            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 AVISO DE COBRANÇA';
                                                                                              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 MANUTENÇÃO DE TÍTULOS VENCIDOS';
                                                                                                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 'CUSTAS 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 'Liquidação em Cartório';
                                                                                                    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 'Liquidação após baixa ou Título não registrado';
                                                                                                      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 pagamento';
                                                                                                        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ÇÃO CANCELADA (NOTA 20 – TABELA 8)';
                                                                                                          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 CRÉDITO EM C/C ATRAVÉS DO SISPAG';
                                                                                                            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 EMISSÃO AVISO DE MOVIMENTAÇÃO DE TÍTULOS (2154)';
                                                                                                              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 'Acerto do Controle do Participante';
                                                                                                                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 'Débito de tarifas/custas';
                                                                                                                  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 DE DADOS – BAIXA';
                                                                                                                    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 'Alteração Confirmada';
                                                                                                                        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 'Liquidação em Cartório';
                                                                                                                          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 'Outras Tarifas de Alteração';
                                                                                                                            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 'DÉBITO MENSAL DE TARIFAS – OUTRAS INSTRUÇÕES';
                                                                                                                              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 Com Pagamento 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 'DÉBITO MENSAL DE TARIFAS – MANUTENÇÃO DE TÍTULOS VENCIDOS';
                                                                                                                                  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 'Código Inexistente';
                                                                                                                                    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 sobre Título Vencido';
                                                                                                                                      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 'DÉBITO MENSAL DE TARIFAS – EXTRATO DE POSIÇÃO (B4EP/B4OX)';
                                                                                                                                        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 'CUSTAS DE SUSTAÇÃO JUDICIAL';
                                                                                                                                          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 'ENTRADA REGISTRADA, AGUARDANDO AVALIAÇÃO';
                                                                                                                                            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 'Entrada rejeitada por CEP Irregular';
                                                                                                                                              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 'Uso da Empresa Alterado';
                                                                                                                                                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 Franco Pagamento';
                                                                                                                                                  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 '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 'BAIXA SIMPLES';
                                                                                                                                                      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 LIQUIDADO ';
                                                                                                                                                        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 'COBRANÇA CONTRATUAL - INSTRUÇÕES/ALTERAÇÕES REJEITADAS/PENDENTES (NOTA 20 - TABELA 5) ';
                                                                                                                                                          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 RELAÇÃO DAS LIQUIDAÇÕES';
                                                                                                                                                            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 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 'Vencimento Alterado';
                                                                                                                                                                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 Baixa/Liquidação';
                                                                                                                                                                  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 Pago em Cheque – Vinculado';
                                                                                                                                                                    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 'Alteração da Opção de Devolução para 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 'ALTERAÇÃO DE DADOS - NOVA ENTRADA OU ALTERAÇÃO/EXCLUSÃO DE DADOS ACATADA ';
                                                                                                                                                                          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 RECEBIMENTO DE INSTRUÇÃ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 'CUSTAS DE CARTÓRIO DISTRIBUIDOR';
                                                                                                                                                                              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 DE LIQUIDAÇÕES 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 'Baixado conforme instruções da Agência';
                                                                                                                                                                                  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 'Retirado de Cartório e Manutenção 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 'Baixa Confirmada';
                                                                                                                                                                                      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 'Vencimento Alterado';
                                                                                                                                                                                        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 'Em Ser';
                                                                                                                                                                                          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 Devolução';
                                                                                                                                                                                            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 'LIQUIDAÇÃO PARCIAL – COBRANÇA INTELIGENTE (B2B)';
                                                                                                                                                                                              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 RECEBIMENTO DE INSTRUÇÃO DE SUSTAÇÃO DE PROTESTO /TARIFA';
                                                                                                                                                                                                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 'ALEGAÇÕES DO SACADO (NOTA 20 - TABELA 6)';
                                                                                                                                                                                                  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 COM TRANSFERÊNCIA PARA DESCONTO';
                                                                                                                                                                                                    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 Concedido';
                                                                                                                                                                                                      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 'Entrada do Título em Cartório';
                                                                                                                                                                                                        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 Rejeitada';
                                                                                                                                                                                                          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 'Prazo de Protesto Alterado';
                                                                                                                                                                                                            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 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 'Prazo de Devolução Alterado';
                                                                                                                                                                                                                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 de Título';
                                                                                                                                                                                                                  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 'DÉBITO MENSAL DE TARIFAS – 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 'ENTRADA REJEITADA (NOTA 20 - TABELA 1)';
                                                                                                                                                                                                                      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 'DÉBITO MENSAL DE TARIFA - AVISO DE MOVIMENTAÇÃO DE TÍTULOS (2154)';
                                                                                                                                                                                                                        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 'DÉBITO MENSAL DE TARIFAS (PARA ENTRADAS E BAIXAS)';
                                                                                                                                                                                                                          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 INSTRUÇÃO';
                                                                                                                                                                                                                            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 'DÉBITO MENSAL DE TARIFAS – 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 'CUSTAS DE IRREGULARIDADE';
                                                                                                                                                                                                                                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 'ENTRADA CONFIRMADA COM RATEIO DE CRÉDITO';
                                                                                                                                                                                                                                  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 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

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

                                                                                                                                                                                                                                                                      $tabela = array(
                                                                                                                                                                                                                                                                          'AA' => 'CAIXA ELETRÔNICO BANCO ITAÚ',
                                                                                                                                                                                                                                                                          'AC' => 'PAGAMENTO EM CARTÓRIO AUTOMATIZADO',
                                                                                                                                                                                                                                                                          'AO' => 'ACERTO ONLINE',
                                                                                                                                                                                                                                                                          'BC' => 'BANCOS CORRESPONDENTES',
                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                          Found in src/Cnab/Retorno/Cnab400/Detalhe.php and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                          tests/Cnab/Remessa/Cnab240/CaixaTest.php on lines 109..134

                                                                                                                                                                                                                                                          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 122.

                                                                                                                                                                                                                                                          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

                                                                                                                                                                                                                                                          There are no issues that match your filters.

                                                                                                                                                                                                                                                          Category
                                                                                                                                                                                                                                                          Status