Skip to content

Commit

Permalink
3.6.1: Magento Code Standard fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ebanolopes authored and root committed Mar 11, 2020
1 parent 42671e3 commit 0724b88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Model/Payment/Adyen/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function processCvc($cvc)
$validCode = null;
$avsArr = explode(" ", $cvc);
switch ($avsArr[0]) {
case '0' :
case '0':
$validCode = null;
break;
case '1':
Expand Down
16 changes: 8 additions & 8 deletions Model/Payment/Cybersorurce/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ public function getCybersourceCardTypeByCode($code)
public function processAvs($avs)
{
$validCodes = [
"F" => "Z",
"H" => "Y",
"T" => "A",
"1" => "S",
"2" => "E",
"K" => "N",
"L" => "Z",
"O" => "A"
"F" => "Z",
"H" => "Y",
"T" => "A",
"1" => "S",
"2" => "E",
"K" => "N",
"L" => "Z",
"O" => "A"
];

return (array_key_exists($avs, $validCodes)) ? $validCodes[$avs] : $avs;
Expand Down

0 comments on commit 0724b88

Please sign in to comment.