Passed
Pull Request — master (#40)
by
unknown
05:42
created
src/Helper/ConvertOrder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $amount = $this->intToStringConverter->convertIntToString($order->getTotal(), $divisor);
68 68
 
69 69
         $details['amount']['value'] = $amount;
70
-        $details['orderNumber'] = (string)($order->getId());
70
+        $details['orderNumber'] = (string) ($order->getId());
71 71
         $details['shippingAddress'] = $this->createShippingAddress($customer);
72 72
         $details['billingAddress'] = $this->createBillingAddress($customer);
73 73
         $details['lines'] = $this->createLines($divisor, $method);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                 'category' => $this->mealVoucherResolver->resolve($method, $item, $details),
113 113
                 'name' => $item->getProductName(),
114 114
                 'quantity' => $item->getQuantity(),
115
-                'vatRate' => (string)($this->getTaxRatesUnitItem($item->getVariant()) * 100),
115
+                'vatRate' => (string) ($this->getTaxRatesUnitItem($item->getVariant()) * 100),
116 116
                 'unitPrice' => [
117 117
                     'currency' => $this->order->getCurrencyCode(),
118 118
                     'value' => $this->intToStringConverter->convertIntToString($item->getUnitPrice(), $divisor),
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                 'type' => self::SHIPPING_TYPE,
173 173
                 'name' => self::SHIPPING_FEE,
174 174
                 'quantity' => 1,
175
-                'vatRate' => (string)($this->getTaxRatesShipments() * 100),
175
+                'vatRate' => (string) ($this->getTaxRatesShipments() * 100),
176 176
                 'unitPrice' => [
177 177
                     'currency' => $this->order->getCurrencyCode(),
178 178
                     'value' => $this->intToStringConverter->convertIntToString($this->order->getShippingTotal(), $divisor),
Please login to merge, or discard this patch.
src/Form/Type/MollieGatewayConfigType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
                     range(1, 100, 1)
79 79
                 ),
80 80
             ])
81
-            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
81
+            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) {
82 82
                 /** @var MollieGatewayConfigInterface $object */
83 83
                 $object = $event->getForm()->getData();
84 84
                 $data = $event->getData();
Please login to merge, or discard this patch.