@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\PayumBundle\Request; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\PayumBundle\Extension; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\PayumBundle\Model; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\PayumBundle\Controller; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\PayumBundle\Action; |
15 | 15 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\PayumBundle\Action\Paypal\ExpressCheckout; |
15 | 15 | |
@@ -59,33 +59,33 @@ discard block |
||
59 | 59 | |
60 | 60 | $m = 0; |
61 | 61 | foreach ($order->getItems() as $item) { |
62 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = $item->getVariant()->getProduct()->getName(); |
|
63 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($item->getDiscountedUnitPrice()); |
|
64 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = $item->getQuantity(); |
|
62 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = $item->getVariant()->getProduct()->getName(); |
|
63 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($item->getDiscountedUnitPrice()); |
|
64 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = $item->getQuantity(); |
|
65 | 65 | |
66 | 66 | ++$m; |
67 | 67 | } |
68 | 68 | |
69 | 69 | if (0 !== $taxTotal = $order->getAdjustmentsTotalRecursively(AdjustmentInterface::TAX_ADJUSTMENT)) { |
70 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Tax Total'; |
|
71 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($taxTotal); |
|
72 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1; |
|
70 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Tax Total'; |
|
71 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($taxTotal); |
|
72 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1; |
|
73 | 73 | |
74 | 74 | ++$m; |
75 | 75 | } |
76 | 76 | |
77 | 77 | if (0 !== $promotionTotal = $order->getOrderPromotionTotal()) { |
78 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Discount'; |
|
79 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($promotionTotal); |
|
80 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1; |
|
78 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Discount'; |
|
79 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($promotionTotal); |
|
80 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1; |
|
81 | 81 | |
82 | 82 | ++$m; |
83 | 83 | } |
84 | 84 | |
85 | 85 | if (0 !== $shippingTotal = $order->getShippingTotal()) { |
86 | - $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Shipping Total'; |
|
87 | - $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($shippingTotal); |
|
88 | - $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1; |
|
86 | + $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Shipping Total'; |
|
87 | + $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($shippingTotal); |
|
88 | + $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | $request->setResult($details); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\PayumBundle\Action\Offline; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\PayumBundle; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace spec\Sylius\Bundle\MailerBundle\Sender\Adapter; |
15 | 15 |