Passed
Pull Request — master (#69)
by Manuele
03:19
created
src/PropertyBuilder/ProductShortDescriptionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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->productShortDescriptionNameResolver->resolvePropertyName(
Please login to merge, or discard this patch.
src/PropertyBuilder/ProductDescriptionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Model/FacetsConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
                 'label' => 'Price',
14 14
                 'options' => [
15 15
                     'field' => 'price_web_us',
16
-                    'interval' => 10000*100,
16
+                    'interval' => 10000 * 100,
17 17
                     'min_doc_count' => 1
18 18
                 ]
19 19
             ],
Please login to merge, or discard this patch.
src/Facet/PriceFacet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,12 +72,12 @@
 block discarded – undo
72 72
     public function getBucketLabel(array $bucket): string
73 73
     {
74 74
         $from = $this->moneyFormatter->format(
75
-            (int)$bucket['key'],
75
+            (int) $bucket['key'],
76 76
             $this->shopperContext->getCurrencyCode(),
77 77
             $this->shopperContext->getLocaleCode()
78 78
         );
79 79
         $to = $this->moneyFormatter->format(
80
-            (int)($bucket['key'] + $this->interval),
80
+            (int) ($bucket['key'] + $this->interval),
81 81
             $this->shopperContext->getCurrencyCode(),
82 82
             $this->shopperContext->getLocaleCode()
83 83
         );
Please login to merge, or discard this patch.
src/Form/Type/SearchType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             ->add('box', SearchBoxType::class, ['label' => false])
42 42
         ;
43 43
 
44
-        $formModifier = function (FormInterface $form, AdapterInterface $adapter) {
44
+        $formModifier = function(FormInterface $form, AdapterInterface $adapter) {
45 45
             if (!$adapter instanceof FantaPaginatorAdapter) {
46 46
                 return;
47 47
             }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             ->get('box')
54 54
             ->addEventListener(
55 55
                 FormEvents::POST_SUBMIT,
56
-                function (FormEvent $event) use ($formModifier) {
56
+                function(FormEvent $event) use ($formModifier) {
57 57
                     /** @var Box $data */
58 58
                     $data = $event->getForm()->getData();
59 59
 
Please login to merge, or discard this patch.