Passed
Push — master ( e960b8...8ab9a9 )
by
unknown
53s queued 18s
created
Model/Entities/TransactionStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         if ($sRequest) {
106 106
             try {
107 107
                 $aRequest = unserialize($sRequest);
108
-            } catch(\Exception $exc) {
108
+            } catch (\Exception $exc) {
109 109
                 if ($this->toolkitHelper->isUTF8($sRequest)) {
110 110
                     $aRequest = unserialize(mb_convert_encoding($sRequest, 'ISO-8859-1', 'UTF-8'));
111 111
                 }
Please login to merge, or discard this patch.
Model/Entities/ApiLog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
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(mb_convert_encoding($sRequest ?? '', 'ISO-8859-1', 'UTF-8'));
109 109
                 }
Please login to merge, or discard this patch.
Model/Api/Invoice.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
         if ($aPositions === false || $blFirstCapture === true || $blDebit === true) {
202 202
             $this->addShippingItem($oOrder, $aPositions, $blDebit, $dShippingCosts); // add shipping invoice params to request
203
-            $this->addGiftCardItem($oOrder);  // add gift card invoice params to request
203
+            $this->addGiftCardItem($oOrder); // add gift card invoice params to request
204 204
             $this->addAmastyGiftcards($oOrder, $aPositions, $blDebit); // add amasty giftcard invoice params to request
205 205
         }
206 206
         $this->addDiscountItem($oOrder, $aPositions, $blDebit); // add discount invoice params to request
@@ -272,11 +272,11 @@  discard block
 block discarded – undo
272 272
     {
273 273
         $giftCards = json_decode($oOrder->getData('gift_cards') ?? '', true);
274 274
 
275
-        if(empty($giftCards) || !is_array($giftCards)) {
275
+        if (empty($giftCards) || !is_array($giftCards)) {
276 276
             return;
277 277
         }
278 278
 
279
-        foreach($giftCards as $giftCard) {
279
+        foreach ($giftCards as $giftCard) {
280 280
             $giftCardAmount = $this->getGiftCardAmount($giftCard);
281 281
             $this->addInvoicePosition($giftCard['c'], $giftCardAmount, 'voucher', 1, 'Giftcard', 0);
282 282
         }
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
     {
440 440
         if (fmod(floatval($dItemAmount), 1.0) > 0) { // input does not represent an integer
441 441
             $sErrorMessage = "Unable to use floating point values for item amounts! Parameter was: ";
442
-            throw new \InvalidArgumentException($sErrorMessage . strval($dItemAmount), 1);
442
+            throw new \InvalidArgumentException($sErrorMessage.strval($dItemAmount), 1);
443 443
         } else { // return the integer value
444 444
             return intval($dItemAmount);
445 445
         }
Please login to merge, or discard this patch.
Helper/Payment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -332,6 +332,6 @@
 block discarded – undo
332 332
         if ($blUseGlobal === false && !empty($sCustomValue)) {
333 333
             return $sCustomValue;
334 334
         }
335
-        return $this->getConfigParam($sParam, 'global', 'payone_general', $sStoreCode);;
335
+        return $this->getConfigParam($sParam, 'global', 'payone_general', $sStoreCode); ;
336 336
     }
337 337
 }
Please login to merge, or discard this patch.