Skip to content

Commit

Permalink
fix: codeclimate issues
Browse files Browse the repository at this point in the history
  • Loading branch information
devaguia committed Mar 25, 2024
1 parent 6676cd3 commit 65ef045
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ engines:
duplication:
enabled: false
csslint:
enabled: true
enabled: false
phpmd:
enabled: true
checks:
Expand Down
11 changes: 5 additions & 6 deletions src/utils/PaymentProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,22 +212,21 @@ public function payment_method_code()
{
switch ($this->gateway->type()) {
case 'bank_slip':
$code = 'bank_slip';
return 'bank_slip';
break;
case 'cc':
$code = 'credit_card';
return 'credit_card';
break;
case 'pix':
$code = 'pix';
return 'pix';
break;
case 'bolepix':
$code = 'pix_bank_slip';
return 'pix_bank_slip';
break;
default:
$code = '';
return '';
break;
}
return $code;
}

/**
Expand Down

0 comments on commit 65ef045

Please sign in to comment.