@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function consumeEvent(TransformEvent $event): void |
| 26 | 26 | { |
| 27 | 27 | $this->buildProperty($event, ProductInterface::class, |
| 28 | - function (ProductInterface $product, Document $document): void { |
|
| 28 | + function(ProductInterface $product, Document $document): void { |
|
| 29 | 29 | /** @var ProductTranslationInterface $productTranslation */ |
| 30 | 30 | foreach ($product->getTranslations() as $productTranslation) { |
| 31 | 31 | $propertyName = $this->productDescriptionNameResolver->resolvePropertyName( |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | ->setMethod('GET') |
| 51 | 51 | ; |
| 52 | 52 | |
| 53 | - $formModifier = function (FormInterface $form, AdapterInterface $adapter) { |
|
| 53 | + $formModifier = function(FormInterface $form, AdapterInterface $adapter) { |
|
| 54 | 54 | if (!$adapter instanceof FantaPaginatorAdapter) { |
| 55 | 55 | return; |
| 56 | 56 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | ->get('box') |
| 63 | 63 | ->addEventListener( |
| 64 | 64 | FormEvents::POST_SUBMIT, |
| 65 | - function (FormEvent $event) use ($formModifier) { |
|
| 65 | + function(FormEvent $event) use ($formModifier) { |
|
| 66 | 66 | /** @var SearchBox $data */ |
| 67 | 67 | $data = $event->getForm()->getData(); |
| 68 | 68 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | public function consumeEvent(TransformEvent $event): void |
| 21 | 21 | { |
| 22 | 22 | $this->buildProperty($event, ProductInterface::class, |
| 23 | - function (ProductInterface $product, Document $document): void { |
|
| 23 | + function(ProductInterface $product, Document $document): void { |
|
| 24 | 24 | foreach ($product->getProductTaxons() as $taxon) { |
| 25 | 25 | $document->set( |
| 26 | 26 | $this->taxonPositionNameResolver->resolvePropertyName($taxon->getTaxon()->getCode()), |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $attributeValues = $this->productAttributeValueRepository->getUniqueAttributeValues($productAttribute); |
| 60 | 60 | |
| 61 | 61 | $choices = []; |
| 62 | - array_walk($attributeValues, function ($productAttributeValue) use (&$choices, $productAttribute): void { |
|
| 62 | + array_walk($attributeValues, function($productAttributeValue) use (&$choices, $productAttribute): void { |
|
| 63 | 63 | $value = $productAttributeValue['value']; |
| 64 | 64 | |
| 65 | 65 | $configuration = $productAttribute->getConfiguration(); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | exec(sprintf('mklink /J %s %s 2> NUL', NODE_MODULES_FOLDER_NAME, PATH_TO_NODE_MODULES), $output, $returnCode); |
| 30 | 30 | $success = $returnCode === 0; |
| 31 | 31 | if (!$success) { |
| 32 | - echo '> Failed o create the required symlink' . PHP_EOL; |
|
| 32 | + echo '> Failed o create the required symlink' . PHP_EOL; |
|
| 33 | 33 | exit(2); |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | |
| 94 | 94 | foreach ($requestData['options'] as $key => $value) { |
| 95 | 95 | if (is_array($value) && 0 === strpos($key, $this->optionPropertyPrefix)) { |
| 96 | - $data[$key] = array_map(function (string $property): string { |
|
| 96 | + $data[$key] = array_map(function(string $property): string { |
|
| 97 | 97 | return strtolower($property); |
| 98 | 98 | }, $value); |
| 99 | 99 | } |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | $propertyName = $this->channelPricingNameResolver->resolvePropertyName($channelCode); |
| 66 | 66 | $rangeQuery = new Range(); |
| 67 | 67 | |
| 68 | - $paramValue = $this->getQueryParamValue($minPrice , $maxPrice); |
|
| 68 | + $paramValue = $this->getQueryParamValue($minPrice, $maxPrice); |
|
| 69 | 69 | |
| 70 | 70 | if (null === $paramValue) { |
| 71 | 71 | return null; |