@@ -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, |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | ] |
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | - $builder->addEventListener(FormEvents::SUBMIT, function (FormEvent $event) use ($options): void { |
|
| 40 | + $builder->addEventListener(FormEvents::SUBMIT, function(FormEvent $event) use ($options): void { |
|
| 41 | 41 | /** @var ChannelDepositInterface $channelDeposit */ |
| 42 | 42 | $channelDeposit = $event->getData(); |
| 43 | 43 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | ->setAllowedTypes('product_variant', ['null', ProductVariantInterface::class]) |
| 70 | 70 | ->setDefaults( |
| 71 | 71 | [ |
| 72 | - 'label' => function (Options $options): string { |
|
| 72 | + 'label' => function(Options $options): string { |
|
| 73 | 73 | return $options['channel']->getName(); |
| 74 | 74 | }, |
| 75 | 75 | ] |