Passed
Push — master ( d3de96...c0d11d )
by
unknown
02:54 queued 12s
created
Model/Api/Invoice.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         if ($aPositions === false || $blFirstCapture === true || $blDebit === true) {
143 143
             $this->addShippingItem($oOrder, $aPositions, $blDebit); // add shipping invoice params to request
144 144
             $this->addDiscountItem($oOrder, $aPositions, $blDebit); // add discount invoice params to request
145
-            $this->addGiftCardItem($oOrder);  // add gift card invoice params to request
145
+            $this->addGiftCardItem($oOrder); // add gift card invoice params to request
146 146
         }
147 147
         return $this->dAmount;
148 148
     }
@@ -178,11 +178,11 @@  discard block
 block discarded – undo
178 178
     {
179 179
         $giftCards = json_decode($oOrder->getData('gift_cards'), true);
180 180
 
181
-        if(empty($giftCards) || !is_array($giftCards)) {
181
+        if (empty($giftCards) || !is_array($giftCards)) {
182 182
             return;
183 183
         }
184 184
 
185
-        foreach($giftCards as $giftCard) {
185
+        foreach ($giftCards as $giftCard) {
186 186
             $this->addInvoicePosition($giftCard['c'], -$giftCard['authorized'], 'voucher', 1, 'Giftcard', 0);
187 187
         }
188 188
     }
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     {
268 268
         if (fmod(floatval($dItemAmount), 1.0) > 0) { // input does not represent an integer
269 269
             $sErrorMessage = "Unable to use floating point values for item amounts! Parameter was: ";
270
-            throw new \InvalidArgumentException($sErrorMessage . strval($dItemAmount), 1);
270
+            throw new \InvalidArgumentException($sErrorMessage.strval($dItemAmount), 1);
271 271
         } else { // return the integer value
272 272
             return intval($dItemAmount);
273 273
         }
Please login to merge, or discard this patch.
Observer/Transactionstatus/Appointed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
         }
128 128
 
129 129
         // preauthorization-orders and advance payment should not create an invoice
130
-        if ($oOrder->getPayoneAuthmode() !== 'authorization' || $oOrder->getPayment()->getMethodInstance()->getCode() === PayoneConfig::METHOD_ADVANCE_PAYMENT){
130
+        if ($oOrder->getPayoneAuthmode() !== 'authorization' || $oOrder->getPayment()->getMethodInstance()->getCode() === PayoneConfig::METHOD_ADVANCE_PAYMENT) {
131 131
             return;
132 132
         }
133 133
 
Please login to merge, or discard this patch.