@@ -185,7 +185,7 @@ |
||
| 185 | 185 | |
| 186 | 186 | if ($autoCcDetection) { |
| 187 | 187 | // Get a flat CC type array like (e.g. ["V", "M", "J", "U", "P"]). |
| 188 | - $availableCcTypes = array_map(function ($type) { return $type['id']; }, $this->paymentHelper->getAvailableCreditcardTypes()); |
|
| 188 | + $availableCcTypes = array_map(function($type) { return $type['id']; }, $this->paymentHelper->getAvailableCreditcardTypes()); |
|
| 189 | 189 | |
| 190 | 190 | // Return the auto cardtype detection config with enabled CC types. |
| 191 | 191 | return [ |
@@ -278,7 +278,7 @@ |
||
| 278 | 278 | public function getOldAddressStatus(AddressInterface $oAddress, $blIsCreditrating = true) |
| 279 | 279 | { |
| 280 | 280 | $sStatus = $this->getStatusFromPreviousQuoteAddress($oAddress, $blIsCreditrating); |
| 281 | - if(empty($sStatus) && $blIsCreditrating === true && $this->getConfigParam('integration_event', 'creditrating', 'payone_protect') == 'after_payment') { |
|
| 281 | + if (empty($sStatus) && $blIsCreditrating === true && $this->getConfigParam('integration_event', 'creditrating', 'payone_protect') == 'after_payment') { |
|
| 282 | 282 | $sStatus = $this->getScoreFromCheckedAddresses($oAddress); |
| 283 | 283 | } |
| 284 | 284 | return $sStatus; |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | protected function removeBannedPaymentMethods($aPaymentMethods, Quote $oQuote) |
| 206 | 206 | { |
| 207 | 207 | $aBannedMethos = $this->getBannedPaymentMethods($oQuote); |
| 208 | - for($i = 0; $i < count($aPaymentMethods); $i++) { |
|
| 208 | + for ($i = 0; $i < count($aPaymentMethods); $i++) { |
|
| 209 | 209 | $sCode = $aPaymentMethods[$i]->getCode(); |
| 210 | 210 | if (array_key_exists($sCode, $aBannedMethos) !== false) { |
| 211 | 211 | $iBannedUntil = strtotime($aBannedMethos[$sCode]); |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | { |
| 228 | 228 | $aWhitelist = $this->checkoutSession->getPayonePaymentWhitelist(); |
| 229 | 229 | if (!empty($aWhitelist)) { |
| 230 | - for($i = 0; $i < count($aPaymentMethods); $i++) { |
|
| 230 | + for ($i = 0; $i < count($aPaymentMethods); $i++) { |
|
| 231 | 231 | if (array_search($aPaymentMethods[$i]->getCode(), $aWhitelist) === false) { |
| 232 | 232 | unset($aPaymentMethods[$i]); |
| 233 | 233 | } |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | */ |
| 245 | 245 | public function removeAmazonPay($aPaymentMethods) |
| 246 | 246 | { |
| 247 | - for($i = 0; $i < count($aPaymentMethods); $i++) { |
|
| 247 | + for ($i = 0; $i < count($aPaymentMethods); $i++) { |
|
| 248 | 248 | if (isset($aPaymentMethods[$i]) && $aPaymentMethods[$i]->getCode() == PayoneConfig::METHOD_AMAZONPAY) { |
| 249 | 249 | unset($aPaymentMethods[$i]); |
| 250 | 250 | } |