@@ -124,14 +124,14 @@ |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | $this->addAddress($oAddress); |
| 127 | - if ($this->addressesChecked->wasAddressCheckedBefore($oAddress, $sType,true) === false) { |
|
| 127 | + if ($this->addressesChecked->wasAddressCheckedBefore($oAddress, $sType, true) === false) { |
|
| 128 | 128 | $aResponse = $this->send(); |
| 129 | 129 | if (isset($aResponse['score']) && $aResponse['score'] === 'U') { |
| 130 | 130 | $unknownDefault = $this->shopHelper->getConfigParam('unknown_value', 'creditrating', 'payone_protect'); |
| 131 | 131 | $aResponse['score'] = empty($unknownDefault) ? 'G' : $unknownDefault; |
| 132 | 132 | } |
| 133 | 133 | if ($aResponse['status'] == 'VALID') { |
| 134 | - $this->addressesChecked->addCheckedAddress($oAddress, $aResponse, $sType,true); |
|
| 134 | + $this->addressesChecked->addCheckedAddress($oAddress, $aResponse, $sType, true); |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | return $aResponse; |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | if ($sRequest) { |
| 104 | 104 | try { |
| 105 | 105 | $aRequest = unserialize($sRequest); |
| 106 | - } catch(\Exception $exc) { |
|
| 106 | + } catch (\Exception $exc) { |
|
| 107 | 107 | if ($this->toolkitHelper->isUTF8($sRequest)) { |
| 108 | 108 | $aRequest = unserialize(utf8_decode($sRequest)); |
| 109 | 109 | } |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | if ($sRequest) { |
| 104 | 104 | try { |
| 105 | 105 | $aRequest = unserialize($sRequest); |
| 106 | - } catch(\Exception $exc) { |
|
| 106 | + } catch (\Exception $exc) { |
|
| 107 | 107 | if ($this->toolkitHelper->isUTF8($sRequest)) { |
| 108 | 108 | $aRequest = unserialize(utf8_decode($sRequest)); |
| 109 | 109 | } |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | |
| 163 | 163 | if ($aPositions === false || $blFirstCapture === true || $blDebit === true) { |
| 164 | 164 | $this->addShippingItem($oOrder, $aPositions, $blDebit, $dShippingCosts); // add shipping invoice params to request |
| 165 | - $this->addGiftCardItem($oOrder); // add gift card invoice params to request |
|
| 165 | + $this->addGiftCardItem($oOrder); // add gift card invoice params to request |
|
| 166 | 166 | $this->addDiscountItem($oOrder, $aPositions, $blDebit); // add discount invoice params to request |
| 167 | 167 | $this->addAmastyGiftcards($oOrder, $aPositions, $blDebit); // add amasty giftcard invoice params to request |
| 168 | 168 | } |
@@ -203,11 +203,11 @@ discard block |
||
| 203 | 203 | { |
| 204 | 204 | $giftCards = json_decode($oOrder->getData('gift_cards') ?? '', true); |
| 205 | 205 | |
| 206 | - if(empty($giftCards) || !is_array($giftCards)) { |
|
| 206 | + if (empty($giftCards) || !is_array($giftCards)) { |
|
| 207 | 207 | return; |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | - foreach($giftCards as $giftCard) { |
|
| 210 | + foreach ($giftCards as $giftCard) { |
|
| 211 | 211 | $giftCardAmount = $this->getGiftCardAmount($giftCard); |
| 212 | 212 | $this->addInvoicePosition($giftCard['c'], $giftCardAmount, 'voucher', 1, 'Giftcard', 0); |
| 213 | 213 | } |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | { |
| 371 | 371 | if (fmod(floatval($dItemAmount), 1.0) > 0) { // input does not represent an integer |
| 372 | 372 | $sErrorMessage = "Unable to use floating point values for item amounts! Parameter was: "; |
| 373 | - throw new \InvalidArgumentException($sErrorMessage . strval($dItemAmount), 1); |
|
| 373 | + throw new \InvalidArgumentException($sErrorMessage.strval($dItemAmount), 1); |
|
| 374 | 374 | } else { // return the integer value |
| 375 | 375 | return intval($dItemAmount); |
| 376 | 376 | } |