Passed
Pull Request — master (#187)
by Przemysław eRIZ
04:41
created
src/Form/Type/ChoiceMapper/ProductOptionsMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $productOptionValues = $productOption->getValues()->toArray();
40 40
         $choices = [];
41 41
 
42
-        array_walk($productOptionValues, function (ProductOptionValueInterface $productOptionValue) use (&$choices): void {
42
+        array_walk($productOptionValues, function(ProductOptionValueInterface $productOptionValue) use (&$choices): void {
43 43
             $value = $productOptionValue->getValue();
44 44
             $choices[$value] = $this->stringFormatter->formatToLowercaseWithoutSpaces($value);
45 45
         });
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
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Form/Type/ChoiceMapper/ProductAttributesMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
bin/create_node_symlink.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Controller/RequestDataHandler/ShopProductListDataHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
ecs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6 6
 use Symplify\EasyCodingStandard\ValueObject\Option;
7 7
 
8
-return static function (ContainerConfigurator $containerConfigurator): void {
8
+return static function(ContainerConfigurator $containerConfigurator): void {
9 9
     $containerConfigurator->import('vendor/bitbag/coding-standard/ecs.php');
10 10
 
11 11
     $parameters = $containerConfigurator->parameters();
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
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $this->buildProperty(
32 32
             $event,
33 33
             ProductInterface::class,
34
-            function (ProductInterface $product, Document $document): void {
34
+            function(ProductInterface $product, Document $document): void {
35 35
                 /** @var ProductTranslationInterface $productTranslation */
36 36
                 foreach ($product->getTranslations() as $productTranslation) {
37 37
                     $propertyName = $this->productDescriptionNameResolver->resolvePropertyName(
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
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $this->buildProperty(
32 32
             $event,
33 33
             ProductInterface::class,
34
-            function (ProductInterface $product, Document $document): void {
34
+            function(ProductInterface $product, Document $document): void {
35 35
                 /** @var ProductTranslationInterface $productTranslation */
36 36
                 foreach ($product->getTranslations() as $productTranslation) {
37 37
                     $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
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $this->buildProperty(
32 32
             $event,
33 33
             ProductInterface::class,
34
-            function (ProductInterface $product, Document $document): void {
34
+            function(ProductInterface $product, Document $document): void {
35 35
                 /** @var ProductTranslationInterface $productTranslation */
36 36
                 foreach ($product->getTranslations() as $productTranslation) {
37 37
                     $propertyName = $this->productShortDescriptionNameResolver->resolvePropertyName(
Please login to merge, or discard this patch.