@@ -155,7 +155,7 @@ |
||
155 | 155 | */ |
156 | 156 | protected function mapProductStorageTransfer(array $productData) |
157 | 157 | { |
158 | - //implement, this method is overwritten and provided in demoshop |
|
158 | + //implement, this method is overwritten and provided in demoshop |
|
159 | 159 | return (new StorageProductTransfer())->fromArray($productData, true); |
160 | 160 | } |
161 | 161 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function provideDependencies(Container $container) |
25 | 25 | { |
26 | - $container[static::PRODUCT_CLIENT] = function (Container $container) { |
|
26 | + $container[static::PRODUCT_CLIENT] = function(Container $container) { |
|
27 | 27 | return new CmsContentWidgetProductConnectorToProductBridge($container->getLocator()->product()->client()); |
28 | 28 | }; |
29 | 29 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function providePersistenceLayerDependencies(Container $container) |
25 | 25 | { |
26 | - $container[static::QUERY_CONTAINER_PRODUCT] = function (Container $container) { |
|
26 | + $container[static::QUERY_CONTAINER_PRODUCT] = function(Container $container) { |
|
27 | 27 | return new CmsContentWidgetProductConnectorToProductBridge( |
28 | 28 | $container->getLocator()->product()->queryContainer() |
29 | 29 | ); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | protected function provideSearchClient(Container $container) |
48 | 48 | { |
49 | - $container[static::CLIENT_SEARCH] = function (Container $container) { |
|
49 | + $container[static::CLIENT_SEARCH] = function(Container $container) { |
|
50 | 50 | return $container->getLocator()->search()->client(); |
51 | 51 | }; |
52 | 52 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | protected function provideProductSetListResultFormatterPlugins(Container $container) |
60 | 60 | { |
61 | - $container[static::PLUGIN_PRODUCT_SET_LIST_RESULT_FORMATTERS] = function (Container $container) { |
|
61 | + $container[static::PLUGIN_PRODUCT_SET_LIST_RESULT_FORMATTERS] = function(Container $container) { |
|
62 | 62 | return $this->getProductSetListResultFormatterPlugins(); |
63 | 63 | }; |
64 | 64 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | protected function provideProductSetListQueryExpanderPlugins(Container $container) |
72 | 72 | { |
73 | - $container[static::PLUGIN_PRODUCT_SET_LIST_QUERY_EXPANDERS] = function (Container $container) { |
|
73 | + $container[static::PLUGIN_PRODUCT_SET_LIST_QUERY_EXPANDERS] = function(Container $container) { |
|
74 | 74 | return $this->getProductSetListQueryExpanderPlugins(); |
75 | 75 | }; |
76 | 76 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | protected function provideStorageClient(Container $container) |
100 | 100 | { |
101 | - $container[static::CLIENT_STORAGE] = function (Container $container) { |
|
101 | + $container[static::CLIENT_STORAGE] = function(Container $container) { |
|
102 | 102 | return new ProductSetToStorageBridge($container->getLocator()->storage()->client()); |
103 | 103 | }; |
104 | 104 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | protected function provideLocaleClient(Container $container) |
112 | 112 | { |
113 | - $container[static::CLIENT_LOCALE] = function (Container $container) { |
|
113 | + $container[static::CLIENT_LOCALE] = function(Container $container) { |
|
114 | 114 | return new ProductSetToLocaleBridge($container->getLocator()->locale()->client()); |
115 | 115 | }; |
116 | 116 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\StorageBusinessTesterActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\StorageSharedTesterActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | public function getPaymentHydrationPlugins() |
47 | 47 | { |
48 | - return new PaymentHydratorPluginCollection(); |
|
48 | + return new PaymentHydratorPluginCollection(); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | protected function addCheckoutPlugins(Container $container) |
45 | 45 | { |
46 | - $container[static::CHECKOUT_PLUGINS] = function (Container $container) { |
|
46 | + $container[static::CHECKOUT_PLUGINS] = function(Container $container) { |
|
47 | 47 | return new CheckoutPluginCollection(); |
48 | 48 | }; |
49 | 49 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | protected function addPaymentHydrationPlugins(Container $container) |
59 | 59 | { |
60 | - $container[static::PAYMENT_HYDRATION_PLUGINS] = function (Container $container) { |
|
60 | + $container[static::PAYMENT_HYDRATION_PLUGINS] = function(Container $container) { |
|
61 | 61 | return $this->getPaymentHydrationPlugins(); |
62 | 62 | }; |
63 | 63 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | protected function addPaymentMethodFilterPlugins(Container $container) |
73 | 73 | { |
74 | - $container[static::PAYMENT_METHOD_FILTER_PLUGINS] = function (Container $container) { |
|
74 | + $container[static::PAYMENT_METHOD_FILTER_PLUGINS] = function(Container $container) { |
|
75 | 75 | return $this->getPaymentMethodFilterPlugins(); |
76 | 76 | }; |
77 | 77 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | protected function sortItemsBySku(array $items) |
52 | 52 | { |
53 | - usort($items, function (ItemTransfer $item1, ItemTransfer $item2) { |
|
53 | + usort($items, function(ItemTransfer $item1, ItemTransfer $item2) { |
|
54 | 54 | if ($item1->getSku() !== $item2->getSku()) { |
55 | 55 | return $item1->getSku() > $item2->getSku(); |
56 | 56 | } |
@@ -89,8 +89,7 @@ |
||
89 | 89 | $blockNames = $this->getBlockNamesForOption($optionKey, $resources, $localeName); |
90 | 90 | |
91 | 91 | $availableBlockNames = $availableBlockNames === null ? |
92 | - $blockNames : |
|
93 | - array_intersect($availableBlockNames, $blockNames); |
|
92 | + $blockNames : array_intersect($availableBlockNames, $blockNames); |
|
94 | 93 | } |
95 | 94 | |
96 | 95 | return $availableBlockNames ?: []; |