| @@ -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 | |
| @@ -45,7 +45,7 @@ | ||
| 45 | 45 | 'interval', | 
| 46 | 46 | ]; | 
| 47 | 47 | |
| 48 | -            $config['payum.api'] = function (ArrayObject $config) use ($environment) { | |
| 48 | +            $config['payum.api'] = function(ArrayObject $config) use ($environment) { | |
| 49 | 49 | $config->validateNotEmpty($config['payum.required_options']); | 
| 50 | 50 | |
| 51 | 51 | /** @var MollieApiClient $mollieApiClient */ | 
| @@ -112,7 +112,7 @@ discard block | ||
| 112 | 112 | 'help' => $this->documentationLinks->getSingleClickDoc(), | 
| 113 | 113 | 'help_html' => true, | 
| 114 | 114 | ]) | 
| 115 | -            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { | |
| 115 | +            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { | |
| 116 | 116 | $data = $event->getData(); | 
| 117 | 117 | |
| 118 | 118 |                  if (isset($data['components']) && true === $data['components']) { | 
| @@ -123,7 +123,7 @@ discard block | ||
| 123 | 123 | |
| 124 | 124 | $event->setData($data); | 
| 125 | 125 | }) | 
| 126 | -            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { | |
| 126 | +            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { | |
| 127 | 127 | $parentData = $event->getForm()->getParent()->getData(); | 
| 128 | 128 | $data = $event->getData(); | 
| 129 | 129 | |
| @@ -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 | |