Showing 172 of 184 total issues
Avoid too many return
statements within this method. Open
Open
return 'CHEQUE DEVOLVIDO (NOTA 20 - TABELA 9)';
Avoid too many return
statements within this method. Open
Open
return 'CHEQUE COMPENSADO';
Avoid too many return
statements within this method. Open
Open
return 'Confirmação Recebimento Instrução Sustação de Protesto';
Avoid too many return
statements within this method. Open
Open
return 'Estorno de Protesto';
Avoid too many return
statements within this method. Open
Open
return 'ABATIMENTO CANCELADO';
Avoid too many return
statements within this method. Open
Open
return 'INSTRUÇÕES REJEITADAS (NOTA 20 - TABELA 3) ';
Avoid too many return
statements within this method. Open
Open
return 'ALTERAÇÃO/EXCLUSÃO DE DADOS REJEITADOS (NOTA 20 - TABELA 2)';
Avoid too many return
statements within this method. Open
Open
return 'BAIXA POR TER SIDO PROTESTADO';
Avoid too many return
statements within this method. Open
Open
return 'TARIFA DE EMISSÃO DE BOLETO/TARIFA DE ENVIO DE DUPLICATA';
Avoid too many return
statements within this method. Open
Open
return 'TARIFA MENSAL BAIXAS EM BANCOS CORRESPONDENTES NA CARTEIRA';
Avoid too many return
statements within this method. Open
Open
return 'TÍTULO SUSTADO JUDICIALMENTE';
Function getBanco
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function getBanco($codigo)
{
if ($codigo == self::BANCO_DO_BRASIL) {
return array(
'codigo_do_banco' => self::BANCO_DO_BRASIL,
- Read upRead up
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"