Test Setup Failed
Push — master ( 302d45...3f2dba )
by
unknown
01:04 queued 16s
created
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.
Model/Source/CreditcardTypes.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,12 +39,12 @@
 block discarded – undo
39 39
      * @var array
40 40
      */
41 41
     protected static $aTypes = [
42
-        'visa'              => array('name' => 'Visa',                  'cardtype' => 'V', 'cvc_length' => 3),
43
-        'mastercard'        => array('name' => 'Mastercard',            'cardtype' => 'M', 'cvc_length' => 3),
44
-        'americanexpress'   => array('name' => 'American Express',      'cardtype' => 'A', 'cvc_length' => 4),
45
-        'dinersclub'        => array('name' => 'Diners Club',           'cardtype' => 'D', 'cvc_length' => 3),
46
-        'jcb'               => array('name' => 'JCB',                   'cardtype' => 'J', 'cvc_length' => 3),
47
-        'cartebleue'        => array('name' => 'Carte Bleue',           'cardtype' => 'B', 'cvc_length' => 3),
42
+        'visa'              => array('name' => 'Visa', 'cardtype' => 'V', 'cvc_length' => 3),
43
+        'mastercard'        => array('name' => 'Mastercard', 'cardtype' => 'M', 'cvc_length' => 3),
44
+        'americanexpress'   => array('name' => 'American Express', 'cardtype' => 'A', 'cvc_length' => 4),
45
+        'dinersclub'        => array('name' => 'Diners Club', 'cardtype' => 'D', 'cvc_length' => 3),
46
+        'jcb'               => array('name' => 'JCB', 'cardtype' => 'J', 'cvc_length' => 3),
47
+        'cartebleue'        => array('name' => 'Carte Bleue', 'cardtype' => 'B', 'cvc_length' => 3),
48 48
     ];
49 49
 
50 50
     /**
Please login to merge, or discard this patch.