@@ -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 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | ->add('molliePaymentMethods', ChoiceType::class, [ |
| 51 | 51 | 'label' => false, |
| 52 | 52 | 'choices' => $data, |
| 53 | - 'choice_attr' => function ($value) use ($images, $paymentFee) { |
|
| 53 | + 'choice_attr' => function($value) use ($images, $paymentFee) { |
|
| 54 | 54 | return [ |
| 55 | 55 | 'image' => $images[$value], |
| 56 | 56 | 'paymentFee' => $paymentFee[$value], |
@@ -62,12 +62,12 @@ discard block |
||
| 62 | 62 | 'choices' => $issuers['ideal'] ?? null, |
| 63 | 63 | 'choice_value' => 'id', |
| 64 | 64 | 'choice_label' => 'name', |
| 65 | - 'choice_attr' => function ($value) { |
|
| 65 | + 'choice_attr' => function($value) { |
|
| 66 | 66 | return ['image' => $value->image->svg]; |
| 67 | 67 | }, |
| 68 | 68 | ]) |
| 69 | 69 | ->add('cartToken', HiddenType::class) |
| 70 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 70 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 71 | 71 | $data = $event->getData(); |
| 72 | 72 | |
| 73 | 73 | $data['selected_issuer'] = isset($data['issuers']) ? $data['issuers']->id : null; |
@@ -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 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $environment, |
| 42 | 42 | ]; |
| 43 | 43 | |
| 44 | - $config['payum.api'] = function (ArrayObject $config) use ($environment) { |
|
| 44 | + $config['payum.api'] = function(ArrayObject $config) use ($environment) { |
|
| 45 | 45 | $config->validateNotEmpty($config['payum.required_options']); |
| 46 | 46 | |
| 47 | 47 | /** @var MollieApiClient $mollieApiClient */ |