Passed
Pull Request — master (#187)
by Przemysław eRIZ
05:39
created
src/PropertyBuilder/ChannelPricingBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function consumeEvent(PostTransformEvent $event): void
29 29
     {
30 30
         $this->buildProperty($event, ProductInterface::class,
31
-            function (ProductInterface $product, Document $document): void {
31
+            function(ProductInterface $product, Document $document): void {
32 32
                 if (0 === $product->getVariants()->count()) {
33 33
                     return;
34 34
                 }
Please login to merge, or discard this patch.
src/PropertyBuilder/SoldUnitsPropertyBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function consumeEvent(PostTransformEvent $event): void
32 32
     {
33 33
         $this->buildProperty($event, ProductInterface::class,
34
-            function (ProductInterface $product, Document $document): void {
34
+            function(ProductInterface $product, Document $document): void {
35 35
                 $soldUnits = 0;
36 36
 
37 37
                 foreach ($product->getVariants() as $productVariant) {
Please login to merge, or discard this patch.
src/PropertyBuilder/ProductTaxonsBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function consumeEvent(PostTransformEvent $event): void
32 32
     {
33 33
         $this->buildProperty($event, ProductInterface::class,
34
-            function (ProductInterface $product, Document $document): void {
34
+            function(ProductInterface $product, Document $document): void {
35 35
                 $taxons = $this->productTaxonsMapper->mapToUniqueCodes($product);
36 36
 
37 37
                 $document->set($this->taxonsProperty, $taxons);
Please login to merge, or discard this patch.
src/PropertyBuilder/ProductTaxonPositionPropertyBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function consumeEvent(PostTransformEvent $event): void
28 28
     {
29 29
         $this->buildProperty($event, ProductInterface::class,
30
-            function (ProductInterface $product, Document $document): void {
30
+            function(ProductInterface $product, Document $document): void {
31 31
                 foreach ($product->getProductTaxons() as $taxon) {
32 32
                     $document->set(
33 33
                         $this->taxonPositionNameResolver->resolvePropertyName($taxon->getTaxon()->getCode()),
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
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function consumeEvent(PostTransformEvent $event): void
29 29
     {
30 30
         $this->buildProperty($event, ProductInterface::class,
31
-            function (ProductInterface $product, Document $document): void {
31
+            function(ProductInterface $product, Document $document): void {
32 32
                 /** @var ProductTranslationInterface $productTranslation */
33 33
                 foreach ($product->getTranslations() as $productTranslation) {
34 34
                     $propertyName = $this->productDescriptionNameResolver->resolvePropertyName(
Please login to merge, or discard this patch.
src/PropertyBuilder/OptionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function consumeEvent(PostTransformEvent $event): void
33 33
     {
34 34
         $this->buildProperty($event, ProductInterface::class,
35
-            function (ProductInterface $product, Document $document): void {
35
+            function(ProductInterface $product, Document $document): void {
36 36
                 $this->resolveProductOptions($product, $document);
37 37
             });
38 38
     }
Please login to merge, or discard this patch.
src/PropertyBuilder/ProductCreatedAtPropertyBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function consumeEvent(PostTransformEvent $event): void
27 27
     {
28 28
         $this->buildProperty($event, ProductInterface::class,
29
-            function (ProductInterface $product, Document $document): void {
29
+            function(ProductInterface $product, Document $document): void {
30 30
                 $createdAt = (int) $product->getCreatedAt()->format('U');
31 31
 
32 32
                 $document->set($this->createdAtProperty, $createdAt);
Please login to merge, or discard this patch.
src/PropertyBuilder/ProductCodeBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function consumeEvent(PostTransformEvent $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
                 $document->set(self::PROPERTY_NAME, $product->getCode());
25 25
             }
26 26
         );
Please login to merge, or discard this patch.
src/PropertyBuilder/ChannelsBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function consumeEvent(PostTransformEvent $event): void
27 27
     {
28 28
         $this->buildProperty($event, ProductInterface::class,
29
-            function (ProductInterface $product, Document $document): void {
29
+            function(ProductInterface $product, Document $document): void {
30 30
                 $channels = [];
31 31
 
32 32
                 foreach ($product->getChannels() as $channel) {
Please login to merge, or discard this patch.