@@ -74,7 +74,7 @@ |
||
74 | 74 | continue; |
75 | 75 | } |
76 | 76 | |
77 | - $this->addTaxAdjustment($unit, (int)$taxAmount, $taxRate->getLabel(), $taxRate->isIncludedInPrice()); |
|
77 | + $this->addTaxAdjustment($unit, (int) $taxAmount, $taxRate->getLabel(), $taxRate->isIncludedInPrice()); |
|
78 | 78 | } |
79 | 79 | } |
80 | 80 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | 'label' => 'gweb_deposit.admin.product_variant.tax_category', |
33 | 33 | ]); |
34 | 34 | |
35 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event): void { |
|
35 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event): void { |
|
36 | 36 | $productVariant = $event->getData(); |
37 | 37 | |
38 | 38 | $event->getForm()->add( |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | ChannelCollectionType::class, |
41 | 41 | [ |
42 | 42 | 'entry_type' => ChannelDepositType::class, |
43 | - 'entry_options' => function (ChannelInterface $channel) use ($productVariant) { |
|
43 | + 'entry_options' => function(ChannelInterface $channel) use ($productVariant) { |
|
44 | 44 | return [ |
45 | 45 | 'channel' => $channel, |
46 | 46 | 'product_variant' => $productVariant, |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | ] |
37 | 37 | ); |
38 | 38 | |
39 | - $builder->addEventListener(FormEvents::SUBMIT, function (FormEvent $event) use ($options): void { |
|
39 | + $builder->addEventListener(FormEvents::SUBMIT, function(FormEvent $event) use ($options): void { |
|
40 | 40 | $channelDeposit = $event->getData(); |
41 | 41 | |
42 | 42 | if (!$channelDeposit instanceof $this->dataClass) { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | ->setAllowedTypes('product_variant', ['null', ProductVariantInterface::class]) |
68 | 68 | ->setDefaults( |
69 | 69 | [ |
70 | - 'label' => function (Options $options): string { |
|
70 | + 'label' => function(Options $options): string { |
|
71 | 71 | return $options['channel']->getName(); |
72 | 72 | }, |
73 | 73 | ] |