@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | if ($aPositions === false || $blFirstCapture === true || $blDebit === true) { |
156 | 156 | $this->addShippingItem($oOrder, $aPositions, $blDebit, $dShippingCosts); // add shipping invoice params to request |
157 | 157 | $this->addDiscountItem($oOrder, $aPositions, $blDebit); // add discount invoice params to request |
158 | - $this->addGiftCardItem($oOrder); // add gift card invoice params to request |
|
158 | + $this->addGiftCardItem($oOrder); // add gift card invoice params to request |
|
159 | 159 | $this->addAmastyGiftcards($oOrder, $aPositions, $blDebit); // add amasty giftcard invoice params to request |
160 | 160 | } |
161 | 161 | return $this->dAmount; |
@@ -195,11 +195,11 @@ discard block |
||
195 | 195 | { |
196 | 196 | $giftCards = json_decode($oOrder->getData('gift_cards'), true); |
197 | 197 | |
198 | - if(empty($giftCards) || !is_array($giftCards)) { |
|
198 | + if (empty($giftCards) || !is_array($giftCards)) { |
|
199 | 199 | return; |
200 | 200 | } |
201 | 201 | |
202 | - foreach($giftCards as $giftCard) { |
|
202 | + foreach ($giftCards as $giftCard) { |
|
203 | 203 | $this->addInvoicePosition($giftCard['c'], -$giftCard['authorized'], 'voucher', 1, 'Giftcard', 0); |
204 | 204 | } |
205 | 205 | } |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | { |
343 | 343 | if (fmod(floatval($dItemAmount), 1.0) > 0) { // input does not represent an integer |
344 | 344 | $sErrorMessage = "Unable to use floating point values for item amounts! Parameter was: "; |
345 | - throw new \InvalidArgumentException($sErrorMessage . strval($dItemAmount), 1); |
|
345 | + throw new \InvalidArgumentException($sErrorMessage.strval($dItemAmount), 1); |
|
346 | 346 | } else { // return the integer value |
347 | 347 | return intval($dItemAmount); |
348 | 348 | } |