Showing 261 of 385 total issues
Avoid too many return
statements within this method. Open
Open
return $type;
Avoid too many return
statements within this method. Open
Open
return 'Cancelada';
Avoid too many return
statements within this method. Open
Open
return 'Saldo PagSeguro';
Avoid too many return
statements within this method. Open
Open
return 'Cartão de crédito Banese Card';
Avoid too many return
statements within this method. Open
Open
return 'Débito online Itaú';
Avoid too many return
statements within this method. Open
Open
return 'Disponível';
Avoid too many return
statements within this method. Open
Open
return 'Boleto Bradesco';
Avoid too many return
statements within this method. Open
Open
return 'Em Contestação';
Avoid too many return
statements within this method. Open
Open
return 'Cartão de crédito FORTBRASIL';
Avoid too many return
statements within this method. Open
Open
return 'Cartão de crédito Up Policard';
Avoid too many return
statements within this method. Open
Open
return $this->_redirect(sprintf('%s%s', $this->baseUrl(), 'pagseguro/payment/failure'));
Avoid too many return
statements within this method. Open
Open
return $transactionTypeCode;
Avoid too many return
statements within this method. Open
Open
return 'Cartão de crédito Aura';
Avoid too many return
statements within this method. Open
Open
return 'Cartão de crédito VALECARD';
Avoid too many return
statements within this method. Open
Open
return 'Débito online Banrisul';
Avoid too many return
statements within this method. Open
Open
return 'Cartão de crédito Sorocred';
Avoid too many return
statements within this method. Open
Open
return 'Bônus';
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return 'Cartão de crédito PersonalCard';
Function dateMask
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
function dateMask(date, fieldName) {
var mydate = '';
var field = document.getElementById(fieldName);
mydate = mydate + date;
if (mydate.length === 2 && event.keyCode !== 8) {
- 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"