@@ -131,14 +131,14 @@ |
||
131 | 131 | $builder |
132 | 132 | ->get($fieldName) |
133 | 133 | ->addModelTransformer(new CallbackTransformer( |
134 | - function (array $idsProductAbstractAsArray) { |
|
134 | + function(array $idsProductAbstractAsArray) { |
|
135 | 135 | if (!count($idsProductAbstractAsArray)) { |
136 | 136 | return []; |
137 | 137 | } |
138 | 138 | |
139 | 139 | return implode(',', $idsProductAbstractAsArray); |
140 | 140 | }, |
141 | - function ($idsProductAbstractAsCsv) { |
|
141 | + function($idsProductAbstractAsCsv) { |
|
142 | 142 | if (empty($idsProductAbstractAsCsv)) { |
143 | 143 | return []; |
144 | 144 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | protected function addCollectorFacade(Container $container) |
49 | 49 | { |
50 | - $container[static::FACADE_COLLECTOR] = function (Container $container) { |
|
50 | + $container[static::FACADE_COLLECTOR] = function(Container $container) { |
|
51 | 51 | return new ProductSetCollectorToCollectorBridge($container->getLocator()->collector()->facade()); |
52 | 52 | }; |
53 | 53 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | protected function addSearchFacade(Container $container) |
61 | 61 | { |
62 | - $container[static::FACADE_SEARCH] = function (Container $container) { |
|
62 | + $container[static::FACADE_SEARCH] = function(Container $container) { |
|
63 | 63 | return new ProductSetCollectorToSearchBridge($container->getLocator()->search()->facade()); |
64 | 64 | }; |
65 | 65 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | protected function addProductSetFacade(Container $container) |
73 | 73 | { |
74 | - $container[static::FACADE_PRODUCT_SET] = function (Container $container) { |
|
74 | + $container[static::FACADE_PRODUCT_SET] = function(Container $container) { |
|
75 | 75 | return new ProductSetCollectorToProductSetBridge($container->getLocator()->productSet()->facade()); |
76 | 76 | }; |
77 | 77 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function addDataReaderService(Container $container) |
85 | 85 | { |
86 | - $container[static::SERVICE_DATA_READER] = function (Container $container) { |
|
86 | + $container[static::SERVICE_DATA_READER] = function(Container $container) { |
|
87 | 87 | return $container->getLocator()->utilDataReader()->service(); |
88 | 88 | }; |
89 | 89 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | protected function addTouchQueryContainer(Container $container) |
97 | 97 | { |
98 | - $container[static::QUERY_CONTAINER_TOUCH] = function (Container $container) { |
|
98 | + $container[static::QUERY_CONTAINER_TOUCH] = function(Container $container) { |
|
99 | 99 | return $container->getLocator()->touch()->queryContainer(); |
100 | 100 | }; |
101 | 101 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | public function configureOptions(OptionsResolver $resolver) |
49 | 49 | { |
50 | 50 | $resolver->setDefaults([ |
51 | - 'validation_groups' => function (FormInterface $form) { |
|
51 | + 'validation_groups' => function(FormInterface $form) { |
|
52 | 52 | $originalUrl = $form->getData()[static::FIELD_ORIGINAL_URL]; |
53 | 53 | $updatedUrl = $form->getData()[static::FIELD_URL]; |
54 | 54 |
@@ -42,10 +42,10 @@ |
||
42 | 42 | |
43 | 43 | $builder->get(static::FIELD_PRODUCT_SET_WEIGHTS) |
44 | 44 | ->addModelTransformer(new CallbackTransformer( |
45 | - function ($productSetIds = null) { |
|
45 | + function($productSetIds = null) { |
|
46 | 46 | return $this->getFactory()->getUtilEncodingService()->encodeJson((array)$productSetIds); |
47 | 47 | }, |
48 | - function ($productSetIds = '{}') { |
|
48 | + function($productSetIds = '{}') { |
|
49 | 49 | return $this->getFactory()->getUtilEncodingService()->decodeJson($productSetIds, true); |
50 | 50 | } |
51 | 51 | )); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | protected function addTouchFacade(Container $container) |
61 | 61 | { |
62 | - $container[static::FACADE_TOUCH] = function (Container $container) { |
|
62 | + $container[static::FACADE_TOUCH] = function(Container $container) { |
|
63 | 63 | return new ProductSetToTouchBridge($container->getLocator()->touch()->facade()); |
64 | 64 | }; |
65 | 65 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | protected function addUrlFacade(Container $container) |
73 | 73 | { |
74 | - $container[static::FACADE_URL] = function (Container $container) { |
|
74 | + $container[static::FACADE_URL] = function(Container $container) { |
|
75 | 75 | return new ProductSetToUrlBridge($container->getLocator()->url()->facade()); |
76 | 76 | }; |
77 | 77 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function addProductImageFacade(Container $container) |
85 | 85 | { |
86 | - $container[static::FACADE_PRODUCT_IMAGE] = function (Container $container) { |
|
86 | + $container[static::FACADE_PRODUCT_IMAGE] = function(Container $container) { |
|
87 | 87 | return new ProductSetToProductImageBridge($container->getLocator()->productImage()->facade()); |
88 | 88 | }; |
89 | 89 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | protected function addUrlQueryContainer(Container $container) |
97 | 97 | { |
98 | - $container[static::QUERY_CONTAINER_URL] = function (Container $container) { |
|
98 | + $container[static::QUERY_CONTAINER_URL] = function(Container $container) { |
|
99 | 99 | return new ProductSetToUrlQueryContainerBridge($container->getLocator()->url()->queryContainer()); |
100 | 100 | }; |
101 | 101 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | protected function addProductImageQueryContainer(Container $container) |
109 | 109 | { |
110 | - $container[static::QUERY_CONTAINER_PRODUCT_IMAGE] = function (Container $container) { |
|
110 | + $container[static::QUERY_CONTAINER_PRODUCT_IMAGE] = function(Container $container) { |
|
111 | 111 | return new ProductSetToProductImageQueryContainerBridge($container->getLocator()->productImage()->queryContainer()); |
112 | 112 | }; |
113 | 113 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | public function addRelations($idProductLabel, array $idsProductAbstract) |
49 | 49 | { |
50 | - $this->handleDatabaseTransaction(function () use ($idProductLabel, $idsProductAbstract) { |
|
50 | + $this->handleDatabaseTransaction(function() use ($idProductLabel, $idsProductAbstract) { |
|
51 | 51 | $this->executeSetRelationsTransaction($idProductLabel, $idsProductAbstract); |
52 | 52 | }); |
53 | 53 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function removeRelations($idProductLabel, array $idsProductAbstract) |
48 | 48 | { |
49 | - $this->handleDatabaseTransaction(function () use ($idProductLabel, $idsProductAbstract) { |
|
49 | + $this->handleDatabaseTransaction(function() use ($idProductLabel, $idsProductAbstract) { |
|
50 | 50 | $this->executeDeleteRelationsTransaction($idProductLabel, $idsProductAbstract); |
51 | 51 | }); |
52 | 52 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function addProductLabelFacade(Container $container) |
44 | 44 | { |
45 | - $container[static::FACADE_PRODUCT_LABEL] = function (Container $container) { |
|
45 | + $container[static::FACADE_PRODUCT_LABEL] = function(Container $container) { |
|
46 | 46 | return new ProductLabelCollectorToProductLabelBridge($container->getLocator()->productLabel()->facade()); |
47 | 47 | }; |
48 | 48 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function addCollectorFacade(Container $container) |
58 | 58 | { |
59 | - $container[static::FACADE_COLLECTOR] = function (Container $container) { |
|
59 | + $container[static::FACADE_COLLECTOR] = function(Container $container) { |
|
60 | 60 | return new ProductLabelCollectorToCollectorBridge($container->getLocator()->collector()->facade()); |
61 | 61 | }; |
62 | 62 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | protected function addDataReaderService(Container $container) |
72 | 72 | { |
73 | - $container[static::SERVICE_DATA_READER] = function (Container $container) { |
|
73 | + $container[static::SERVICE_DATA_READER] = function(Container $container) { |
|
74 | 74 | return $container->getLocator()->utilDataReader()->service(); |
75 | 75 | }; |
76 | 76 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | protected function addTouchQueryContainer(Container $container) |
86 | 86 | { |
87 | - $container[static::QUERY_CONTAINER_TOUCH] = function (Container $container) { |
|
87 | + $container[static::QUERY_CONTAINER_TOUCH] = function(Container $container) { |
|
88 | 88 | return $container->getLocator()->touch()->queryContainer(); |
89 | 89 | }; |
90 | 90 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | protected function storeLabels(array $productLabelTransferCollection) |
65 | 65 | { |
66 | - $this->handleDatabaseTransaction(function () use ($productLabelTransferCollection) { |
|
66 | + $this->handleDatabaseTransaction(function() use ($productLabelTransferCollection) { |
|
67 | 67 | $this->persistLabels($productLabelTransferCollection); |
68 | 68 | }); |
69 | 69 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * @param \Generated\Shared\Transfer\ProductLabelTransfer[] $productLabelTransferCollection |
44 | 44 | * @param int[] $positionMap |
45 | 45 | * |
46 | - * @return array |
|
46 | + * @return \Generated\Shared\Transfer\ProductLabelTransfer[] |
|
47 | 47 | */ |
48 | 48 | protected function updatePosition(array $productLabelTransferCollection, array $positionMap) |
49 | 49 | { |