Completed
Push — master ( 3a5842...38b268 )
by Oleksandr
13s queued 11s
created
src/SprykerEco/Zed/Ratepay/Business/Api/Model/Response/ProfileResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     protected function simpleXmlElementToArrayRecursive(SimpleXMLElement $xmlObject)
36 36
     {
37
-        return json_decode(json_encode((array)$xmlObject), true);
37
+        return json_decode(json_encode((array) $xmlObject), true);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Ratepay/Business/Api/Mapper/PartialBasketMapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $shoppingBasket
90 90
             ->setCurrency($this->ratepayPaymentTransfer->requireCurrencyIso3()->getCurrencyIso3())
91 91
             ->setDiscountTitle(BasketMapper::DEFAULT_DISCOUNT_NODE_VALUE)
92
-            ->setDiscountUnitPrice($this->moneyFacade->convertIntegerToDecimal((int)$partialOrderTotals->getDiscountTotal()) * BasketMapper::BASKET_DISCOUNT_COEFFICIENT)
92
+            ->setDiscountUnitPrice($this->moneyFacade->convertIntegerToDecimal((int) $partialOrderTotals->getDiscountTotal()) * BasketMapper::BASKET_DISCOUNT_COEFFICIENT)
93 93
             ->setDiscountTaxRate($this->discountTaxRate);
94 94
 
95 95
         $grandTotal = $partialOrderTotals->getGrandTotal();
@@ -100,11 +100,11 @@  discard block
 block discarded – undo
100 100
             $grandTotal += $shippingUnitPrice;
101 101
 
102 102
             $shoppingBasket
103
-                ->setShippingUnitPrice($this->moneyFacade->convertIntegerToDecimal((int)$shippingUnitPrice))
103
+                ->setShippingUnitPrice($this->moneyFacade->convertIntegerToDecimal((int) $shippingUnitPrice))
104 104
                 ->setShippingTitle(BasketMapper::DEFAULT_SHIPPING_NODE_VALUE)
105 105
                 ->setShippingTaxRate(BasketMapper::DEFAULT_SHIPPING_TAX_RATE);
106 106
         }
107
-        $shoppingBasket->setAmount($this->moneyFacade->convertIntegerToDecimal((int)$grandTotal));
107
+        $shoppingBasket->setAmount($this->moneyFacade->convertIntegerToDecimal((int) $grandTotal));
108 108
 
109 109
         if (count($this->orderTransfer->getExpenses())) {
110 110
             $this->requestTransfer->getShoppingBasket()
Please login to merge, or discard this patch.
SprykerEco/Zed/Ratepay/Business/Api/Mapper/InstallmentCalculationMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function map()
59 59
     {
60
-        $grandTotal = $this->moneyFacade->convertIntegerToDecimal((int)$this->quoteTransfer->requireTotals()
60
+        $grandTotal = $this->moneyFacade->convertIntegerToDecimal((int) $this->quoteTransfer->requireTotals()
61 61
                 ->getTotals()
62 62
                 ->requireGrandTotal()
63 63
                 ->getGrandTotal());
Please login to merge, or discard this patch.
SprykerEco/Zed/Ratepay/Business/Api/Mapper/OrderPaymentRequestMapper.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
         $this->ratepayPaymentRequestTransfer
128 128
             ->setBillingAddress($billingAddress)
129 129
             ->setShippingAddress($shippingAddress)
130
-            ->setBankAccountHolder($billingAddress->getFirstName() . " " . $billingAddress->getLastName());
130
+            ->setBankAccountHolder($billingAddress->getFirstName()." ".$billingAddress->getLastName());
131 131
     }
132 132
 
133 133
     /**
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Ratepay/Business/Api/Mapper/BasketItemMapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     public function map()
52 52
     {
53 53
         $itemPrice = $this->itemTransfer->requireUnitGrossPrice()->getUnitPriceToPayAggregation();
54
-        $itemPrice = $this->moneyFacade->convertIntegerToDecimal((int)$itemPrice);
54
+        $itemPrice = $this->moneyFacade->convertIntegerToDecimal((int) $itemPrice);
55 55
 
56 56
         $itemTransfer = (new RatepayRequestShoppingBasketItemTransfer())
57 57
             ->setItemName($this->itemTransfer->requireName()->getName())
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     protected function getBasketItemDiscount()
81 81
     {
82 82
         $itemDiscount = $this->itemTransfer->getUnitTotalDiscountAmountWithProductOption();
83
-        $itemDiscount = $this->moneyFacade->convertIntegerToDecimal((int)$itemDiscount);
83
+        $itemDiscount = $this->moneyFacade->convertIntegerToDecimal((int) $itemDiscount);
84 84
 
85 85
         return $itemDiscount;
86 86
     }
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Ratepay/Business/Api/Mapper/BasketMapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@
 block discarded – undo
58 58
      */
59 59
     public function map()
60 60
     {
61
-        $shippingUnitPrice = $this->moneyFacade->convertIntegerToDecimal((int)$this->ratepayPaymentRequestTransfer->requireShippingExpenseTotal()->getShippingExpenseTotal());
62
-        $grandTotal = $this->moneyFacade->convertIntegerToDecimal((int)$this->ratepayPaymentRequestTransfer->requireGrandTotal()->getGrandTotal());
63
-        $discountTotal = $this->moneyFacade->convertIntegerToDecimal((int)$this->ratepayPaymentRequestTransfer->getDiscountTotal());
61
+        $shippingUnitPrice = $this->moneyFacade->convertIntegerToDecimal((int) $this->ratepayPaymentRequestTransfer->requireShippingExpenseTotal()->getShippingExpenseTotal());
62
+        $grandTotal = $this->moneyFacade->convertIntegerToDecimal((int) $this->ratepayPaymentRequestTransfer->requireGrandTotal()->getGrandTotal());
63
+        $discountTotal = $this->moneyFacade->convertIntegerToDecimal((int) $this->ratepayPaymentRequestTransfer->getDiscountTotal());
64 64
 
65 65
         $this->requestTransfer
66 66
             ->setShoppingBasket(new RatepayRequestShoppingBasketTransfer())->getShoppingBasket()
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Ratepay/Business/Api/Mapper/InstallmentDetailMapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@
 block discarded – undo
51 51
     {
52 52
         $this->requestTransfer->setInstallmentDetails(new RatepayRequestInstallmentDetailsTransfer())->getInstallmentDetails()
53 53
             ->setRatesNumber($this->ratepayPaymentRequestTransfer->getInstallmentNumberRates())
54
-            ->setAmount($this->moneyFacade->convertIntegerToDecimal((int)$this->ratepayPaymentRequestTransfer->getInstallmentRate()))
55
-            ->setLastAmount($this->moneyFacade->convertIntegerToDecimal((int)$this->ratepayPaymentRequestTransfer->getInstallmentLastRate()))
56
-            ->setInterestRate($this->moneyFacade->convertIntegerToDecimal((int)$this->ratepayPaymentRequestTransfer->getInstallmentInterestRate()))
54
+            ->setAmount($this->moneyFacade->convertIntegerToDecimal((int) $this->ratepayPaymentRequestTransfer->getInstallmentRate()))
55
+            ->setLastAmount($this->moneyFacade->convertIntegerToDecimal((int) $this->ratepayPaymentRequestTransfer->getInstallmentLastRate()))
56
+            ->setInterestRate($this->moneyFacade->convertIntegerToDecimal((int) $this->ratepayPaymentRequestTransfer->getInstallmentInterestRate()))
57 57
             ->setPaymentFirstday($this->ratepayPaymentRequestTransfer->getInstallmentPaymentFirstDay());
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Ratepay/Business/Api/Mapper/PaymentMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public function map()
52 52
     {
53
-        $grandTotal = $this->moneyFacade->convertIntegerToDecimal((int)$this->ratepayPaymentRequestTransfer->getGrandTotal());
53
+        $grandTotal = $this->moneyFacade->convertIntegerToDecimal((int) $this->ratepayPaymentRequestTransfer->getGrandTotal());
54 54
 
55 55
         $this->requestTransfer->setPayment(new RatepayRequestPaymentTransfer())->getPayment()
56 56
             ->setCurrency($this->ratepayPaymentRequestTransfer->getCurrencyIso3())
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Ratepay/Business/Api/Mapper/InstallmentPaymentMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $this->requestTransfer->setInstallmentPayment(new RatepayRequestInstallmentPaymentTransfer())->getInstallmentPayment()
54 54
             ->setDebitPayType($this->ratepayPaymentRequestTransfer->getDebitPayType())
55 55
             ->setAmount(
56
-                $this->moneyFacade->convertIntegerToDecimal((int)$this->ratepayPaymentRequestTransfer->getInstallmentGrandTotalAmount())
56
+                $this->moneyFacade->convertIntegerToDecimal((int) $this->ratepayPaymentRequestTransfer->getInstallmentGrandTotalAmount())
57 57
             );
58 58
     }
59 59
 }
Please login to merge, or discard this patch.