Passed
Pull Request — master (#187)
by Przemysław eRIZ
05:39
created
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.
src/PropertyBuilder/AttributeBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function consumeEvent(PostTransformEvent $event): void
37 37
     {
38 38
         $this->buildProperty($event, ProductInterface::class,
39
-            function (ProductInterface $product, Document $document): void {
39
+            function(ProductInterface $product, Document $document): void {
40 40
                 $this->resolveProductAttributes($product, $document);
41 41
             });
42 42
     }
Please login to merge, or discard this patch.
src/PropertyBuilder/ProductNameBuilder.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->productNameNameResolver->resolvePropertyName($productTranslation->getLocale());
Please login to merge, or discard this patch.
src/PropertyBuilder/ProductShortDescriptionBuilder.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->productShortDescriptionNameResolver->resolvePropertyName(
Please login to merge, or discard this patch.