@@ -64,7 +64,7 @@ |
||
64 | 64 | ], |
65 | 65 | 'data' => $this->session->get('mollie_direct_debit_data')['iban'] ?? null, |
66 | 66 | ]) |
67 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
67 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
68 | 68 | $data = $event->getData(); |
69 | 69 | |
70 | 70 | $this->session->set('mollie_direct_debit_data', $data); |
@@ -73,8 +73,7 @@ |
||
73 | 73 | 'webhookUrl' => $details['webhookUrl'], |
74 | 74 | 'lines' => $details['lines'], |
75 | 75 | 'expiresAt' => isset($dateExpired) ? |
76 | - $dateExpired->format('Y-m-d') : |
|
77 | - (new \DateTimeImmutable('now'))->format('Y-m-d'), |
|
76 | + $dateExpired->format('Y-m-d') : (new \DateTimeImmutable('now'))->format('Y-m-d'), |
|
78 | 77 | ]); |
79 | 78 | } catch (\Exception $e) { |
80 | 79 | $this->loggerAction->addNegativeLog(sprintf('Error with create order with: %s', $e->getMessage())); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | /** @var Collection $shipments */ |
33 | 33 | $shipments = $order->getShipments(); |
34 | - $shipmentsToRemove = $shipments->filter(static function (ShipmentInterface $shipment): bool { |
|
34 | + $shipmentsToRemove = $shipments->filter(static function(ShipmentInterface $shipment): bool { |
|
35 | 35 | return $shipment->getState() === ShipmentInterface::STATE_READY && $shipment->getUnits()->isEmpty(); |
36 | 36 | }); |
37 | 37 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | { |
35 | 35 | $resolver |
36 | 36 | ->setDefaults([ |
37 | - 'choice_label' => static function (ShipmentUnitInterface $orderItemUnit): string { |
|
37 | + 'choice_label' => static function(ShipmentUnitInterface $orderItemUnit): string { |
|
38 | 38 | /** @var ProductVariantInterface $shippable */ |
39 | 39 | $shippable = $orderItemUnit->getShippable(); |
40 | 40 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | ]) |
42 | 42 | ; |
43 | 43 | |
44 | - $builder->addEventListener(FormEvents::POST_SUBMIT, static function (FormEvent $formEvent): void { |
|
44 | + $builder->addEventListener(FormEvents::POST_SUBMIT, static function(FormEvent $formEvent): void { |
|
45 | 45 | /** @var ShipmentInterface $shipment */ |
46 | 46 | $shipment = $formEvent->getData(); |
47 | 47 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | private function getShippedItemQuantity(OrderInterface $order, int $itemId): int |
59 | 59 | { |
60 | - $itemCollection = $order->getItems()->filter(function (OrderItemInterface $item) use ($itemId) { |
|
60 | + $itemCollection = $order->getItems()->filter(function(OrderItemInterface $item) use ($itemId) { |
|
61 | 61 | return $item->getId() === $itemId; |
62 | 62 | }); |
63 | 63 |
@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | /** @var Collection $shipments */ |
53 | 53 | $shipments = $order->getShipments(); |
54 | - $shipmentsToRemove = $shipments->filter(static function (ShipmentInterface $shipment): bool { |
|
54 | + $shipmentsToRemove = $shipments->filter(static function(ShipmentInterface $shipment): bool { |
|
55 | 55 | return $shipment->getState() === ShipmentInterface::STATE_READY && $shipment->getUnits()->isEmpty(); |
56 | 56 | }); |
57 | 57 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | public function getMethodByName(string $methodName): ?MollieGatewayConfigInterface |
33 | 33 | { |
34 | - $method = $this->mollieGatewayConfig->filter(function (MollieGatewayConfigInterface $mollieGatewayConfig) use ($methodName) { |
|
34 | + $method = $this->mollieGatewayConfig->filter(function(MollieGatewayConfigInterface $mollieGatewayConfig) use ($methodName) { |
|
35 | 35 | return $mollieGatewayConfig->getMethodId() === $methodName; |
36 | 36 | }); |
37 | 37 |
@@ -120,7 +120,7 @@ |
||
120 | 120 | 'label' => 'bitbag_sylius_mollie_plugin.ui.debug_level_log', |
121 | 121 | 'choices' => Options::getDebugLevels(), |
122 | 122 | ]) |
123 | - ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
123 | + ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
124 | 124 | /** @var MollieGatewayConfigInterface $object */ |
125 | 125 | $object = $event->getForm()->getData(); |
126 | 126 | $data = $event->getData(); |