@@ -38,8 +38,7 @@ |
||
| 38 | 38 | /** @var RefundPaymentMethodsProviderInterface */ |
| 39 | 39 | private $refundPaymentMethodProvider; |
| 40 | 40 | |
| 41 | - public function __construct |
|
| 42 | - ( |
|
| 41 | + public function __construct( |
|
| 43 | 42 | RepositoryInterface $orderRepository, |
| 44 | 43 | UnitsItemOrderRefundInterface $unitsItemOrderRefund, |
| 45 | 44 | UnitsShipmentOrderRefundInterface $shipmentOrderRefund, |
@@ -32,8 +32,7 @@ |
||
| 32 | 32 | /** @var FromSyliusToMollieLinesResolverInterface */ |
| 33 | 33 | private $mollieUnitsResolver; |
| 34 | 34 | |
| 35 | - public function __construct |
|
| 36 | - ( |
|
| 35 | + public function __construct( |
|
| 37 | 36 | MollieApiClient $apiClient, |
| 38 | 37 | MollieLoggerActionInterface $loggerAction, |
| 39 | 38 | FromSyliusToMollieLinesResolverInterface $mollieUnitsResolver |
@@ -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 | |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | 'label' => 'bitbag_sylius_mollie_plugin.ui.debug_level_log', |
| 87 | 87 | 'choices' => Options::getDebugLevels(), |
| 88 | 88 | ]) |
| 89 | - ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
| 89 | + ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
| 90 | 90 | $data = $event->getData(); |
| 91 | 91 | |
| 92 | 92 | $data['payum.http_client'] = '@bitbag_sylius_mollie_plugin.mollie_api_client'; |
@@ -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; |
@@ -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 */ |
@@ -31,8 +31,7 @@ discard block |
||
| 31 | 31 | /** @var FromMollieToSyliusResolverInterface */ |
| 32 | 32 | private $fromMollieToSyliusResolver; |
| 33 | 33 | |
| 34 | - public function __construct |
|
| 35 | - ( |
|
| 34 | + public function __construct( |
|
| 36 | 35 | ShipmentFactoryInterface $shipmentFactory, |
| 37 | 36 | RepositoryInterface $orderRepository, |
| 38 | 37 | FromMollieToSyliusResolverInterface $fromMollieToSyliusResolver |
@@ -52,7 +51,7 @@ discard block |
||
| 52 | 51 | |
| 53 | 52 | /** @var Collection $shipments */ |
| 54 | 53 | $shipments = $order->getShipments(); |
| 55 | - $shipmentsToRemove = $shipments->filter(static function (ShipmentInterface $shipment): bool { |
|
| 54 | + $shipmentsToRemove = $shipments->filter(static function(ShipmentInterface $shipment): bool { |
|
| 56 | 55 | return $shipment->getState() === ShipmentInterface::STATE_READY && $shipment->getUnits()->isEmpty(); |
| 57 | 56 | }); |
| 58 | 57 | |