@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | protected function addCollectorFacade(Container $container) |
51 | 51 | { |
52 | - $container[static::FACADE_COLLECTOR] = function (Container $container) { |
|
52 | + $container[static::FACADE_COLLECTOR] = function(Container $container) { |
|
53 | 53 | return new ProductReviewCollectorToCollectorBridge($container->getLocator()->collector()->facade()); |
54 | 54 | }; |
55 | 55 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | protected function addSearchFacade(Container $container) |
63 | 63 | { |
64 | - $container[static::FACADE_SEARCH] = function (Container $container) { |
|
64 | + $container[static::FACADE_SEARCH] = function(Container $container) { |
|
65 | 65 | return new ProductReviewCollectorToSearchBridge($container->getLocator()->search()->facade()); |
66 | 66 | }; |
67 | 67 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | protected function addDataReaderService(Container $container) |
75 | 75 | { |
76 | - $container[static::SERVICE_DATA_READER] = function (Container $container) { |
|
76 | + $container[static::SERVICE_DATA_READER] = function(Container $container) { |
|
77 | 77 | return $container->getLocator()->utilDataReader()->service(); |
78 | 78 | }; |
79 | 79 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | protected function addTouchQueryContainer(Container $container) |
87 | 87 | { |
88 | - $container[static::QUERY_CONTAINER_TOUCH] = function (Container $container) { |
|
88 | + $container[static::QUERY_CONTAINER_TOUCH] = function(Container $container) { |
|
89 | 89 | return $container->getLocator()->touch()->queryContainer(); |
90 | 90 | }; |
91 | 91 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | protected function addStore(Container $container) |
99 | 99 | { |
100 | - $container[static::STORE] = function () { |
|
100 | + $container[static::STORE] = function() { |
|
101 | 101 | return Store::getInstance(); |
102 | 102 | }; |
103 | 103 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | protected function addUtilSanitizeService(Container $container) |
49 | 49 | { |
50 | - $container[static::SERVICE_UTIL_SANITIZE] = function (Container $container) { |
|
50 | + $container[static::SERVICE_UTIL_SANITIZE] = function(Container $container) { |
|
51 | 51 | return new ServiceProductReviewGuiToUtilSanitizeBridge($container->getLocator()->utilSanitize()->service()); |
52 | 52 | }; |
53 | 53 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | protected function addUtilDateTimeService(Container $container) |
61 | 61 | { |
62 | - $container[static::SERVICE_UTIL_DATE_TIME] = function (Container $container) { |
|
62 | + $container[static::SERVICE_UTIL_DATE_TIME] = function(Container $container) { |
|
63 | 63 | return new ServiceProductReviewGuiToDateTimeBridge($container->getLocator()->utilDateTime()->service()); |
64 | 64 | }; |
65 | 65 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function addProductReviewFacade(Container $container) |
85 | 85 | { |
86 | - $container[static::FACADE_PRODUCT_REVIEW] = function (Container $container) { |
|
86 | + $container[static::FACADE_PRODUCT_REVIEW] = function(Container $container) { |
|
87 | 87 | return new ProductReviewGuiToProductReviewBridge($container->getLocator()->productReview()->facade()); |
88 | 88 | }; |
89 | 89 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | protected function addProductReviewQueryContainer(Container $container) |
97 | 97 | { |
98 | - $container[static::QUERY_CONTAINER_PRODUCT_REVIEW] = function (Container $container) { |
|
98 | + $container[static::QUERY_CONTAINER_PRODUCT_REVIEW] = function(Container $container) { |
|
99 | 99 | return new ProductReviewGuiToProductReviewQueryContainerBridge($container->getLocator()->productReview()->queryContainer()); |
100 | 100 | }; |
101 | 101 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | protected function addLocaleFacade(Container $container) |
109 | 109 | { |
110 | - $container[static::FACADE_LOCALE] = function (Container $container) { |
|
110 | + $container[static::FACADE_LOCALE] = function(Container $container) { |
|
111 | 111 | return new ProductReviewGuiToLocaleBridge($container->getLocator()->locale()->facade()); |
112 | 112 | }; |
113 | 113 | } |
@@ -132,14 +132,14 @@ |
||
132 | 132 | $builder |
133 | 133 | ->get($fieldName) |
134 | 134 | ->addModelTransformer(new CallbackTransformer( |
135 | - function (array $idsAsArray) { |
|
135 | + function(array $idsAsArray) { |
|
136 | 136 | if (!count($idsAsArray)) { |
137 | 137 | return []; |
138 | 138 | } |
139 | 139 | |
140 | 140 | return implode(',', $idsAsArray); |
141 | 141 | }, |
142 | - function ($idsAsString) { |
|
142 | + function($idsAsString) { |
|
143 | 143 | if (empty($idsAsString)) { |
144 | 144 | return []; |
145 | 145 | } |
@@ -124,8 +124,7 @@ discard block |
||
124 | 124 | protected function saveCustomers(CustomerGroupTransfer $customerGroupTransfer, SpyCustomerGroup $customerGroupEntity) |
125 | 125 | { |
126 | 126 | $idsCustomerToAssign = $customerGroupTransfer->getCustomerAssignment() ? |
127 | - $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToAssign() : |
|
128 | - []; |
|
127 | + $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToAssign() : []; |
|
129 | 128 | |
130 | 129 | foreach ($idsCustomerToAssign as $idCustomerToAssign) { |
131 | 130 | $customerGroupToCustomerEntity = new SpyCustomerGroupToCustomer(); |
@@ -184,8 +183,7 @@ discard block |
||
184 | 183 | ->requireIdCustomerGroup(); |
185 | 184 | |
186 | 185 | $idsCustomerToDeAssign = $customerGroupTransfer->getCustomerAssignment() ? |
187 | - $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToDeAssign() : |
|
188 | - []; |
|
186 | + $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToDeAssign() : []; |
|
189 | 187 | |
190 | 188 | foreach ($idsCustomerToDeAssign as $idCustomer) { |
191 | 189 | $customerEntity = $this->queryContainer |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | protected function addDataFormatterService(Container $container) |
52 | 52 | { |
53 | - $container[static::SERVICE_DATE_FORMATTER] = function (Container $container) { |
|
53 | + $container[static::SERVICE_DATE_FORMATTER] = function(Container $container) { |
|
54 | 54 | return $container->getLocator()->utilDateTime()->service(); |
55 | 55 | }; |
56 | 56 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | protected function addCustomerQueryContainer(Container $container) |
66 | 66 | { |
67 | - $container[static::QUERY_CONTAINER_CUSTOMER] = function (Container $container) { |
|
67 | + $container[static::QUERY_CONTAINER_CUSTOMER] = function(Container $container) { |
|
68 | 68 | return new CustomerGroupToCustomerQueryContainerBridge( |
69 | 69 | $container->getLocator()->customer()->queryContainer() |
70 | 70 | ); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | protected function addUtilEncodingService(Container $container) |
82 | 82 | { |
83 | - $container[static::SERVICE_UTIL_ENCODING] = function (Container $container) { |
|
83 | + $container[static::SERVICE_UTIL_ENCODING] = function(Container $container) { |
|
84 | 84 | return new CustomerGroupToUtilEncodingBridge($container->getLocator()->utilEncoding()->service()); |
85 | 85 | }; |
86 | 86 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | protected function addProductClient(Container $container) |
41 | 41 | { |
42 | - $container[static::PRODUCT_CLIENT] = function (Container $container) { |
|
42 | + $container[static::PRODUCT_CLIENT] = function(Container $container) { |
|
43 | 43 | return new DiscountPromotionToProductBridge($container->getLocator()->product()->client()); |
44 | 44 | }; |
45 | 45 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | protected function addProductMapperPlugin(Container $container) |
55 | 55 | { |
56 | - $container[static::PRODUCT_MAPPER_PLUGIN] = function (Container $container) { |
|
56 | + $container[static::PRODUCT_MAPPER_PLUGIN] = function(Container $container) { |
|
57 | 57 | return $this->getProductMapperPlugin($container); |
58 | 58 | }; |
59 | 59 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | */ |
50 | 50 | public function saveSalesOrderGiftCardItems(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponse) |
51 | 51 | { |
52 | - $this->handleDatabaseTransaction(function () use ($quoteTransfer) { |
|
52 | + $this->handleDatabaseTransaction(function() use ($quoteTransfer) { |
|
53 | 53 | foreach ($quoteTransfer->getItems() as $itemTransfer) { |
54 | 54 | if ($this->isGiftCard($itemTransfer)) { |
55 | 55 | $this->saveGiftCardOrderItem($itemTransfer); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $productAttributeKeyEntity->fromArray($seedData); |
52 | 52 | $productAttributeKeyEntity->save(); |
53 | 53 | |
54 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($productAttributeKeyEntity) { |
|
54 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($productAttributeKeyEntity) { |
|
55 | 55 | $productAttributeKeyEntity->delete(); |
56 | 56 | }); |
57 | 57 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $productManagementAttributeEntity->fromArray($seedData); |
75 | 75 | $productManagementAttributeEntity->save(); |
76 | 76 | |
77 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($productManagementAttributeEntity) { |
|
77 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($productManagementAttributeEntity) { |
|
78 | 78 | $productManagementAttributeEntity->delete(); |
79 | 79 | }); |
80 | 80 |
@@ -72,7 +72,7 @@ |
||
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
75 | - $result = array_map(function ($attributeValues) { |
|
75 | + $result = array_map(function($attributeValues) { |
|
76 | 76 | $attributeValues = array_values(array_unique($attributeValues)); |
77 | 77 | |
78 | 78 | return $attributeValues; |