@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | public function createProductSetData(ProductSetTransfer $productSetTransfer) |
45 | 45 | { |
46 | - return $this->handleDatabaseTransaction(function () use ($productSetTransfer) { |
|
46 | + return $this->handleDatabaseTransaction(function() use ($productSetTransfer) { |
|
47 | 47 | return $this->executeCreateProductSetDataTransaction($productSetTransfer); |
48 | 48 | }); |
49 | 49 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function deleteProductSetData(SpyProductSet $productSetEntity) |
38 | 38 | { |
39 | - $this->handleDatabaseTransaction(function () use ($productSetEntity) { |
|
39 | + $this->handleDatabaseTransaction(function() use ($productSetEntity) { |
|
40 | 40 | $this->executeDeleteProductSetDataTransaction($productSetEntity); |
41 | 41 | }); |
42 | 42 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | public function updateProductSetData(LocalizedProductSetTransfer $localizedProductSetTransfer, $idProductSet) |
49 | 49 | { |
50 | - return $this->handleDatabaseTransaction(function () use ($localizedProductSetTransfer, $idProductSet) { |
|
50 | + return $this->handleDatabaseTransaction(function() use ($localizedProductSetTransfer, $idProductSet) { |
|
51 | 51 | return $this->executeUpdateProductSetDataTransaction($localizedProductSetTransfer, $idProductSet); |
52 | 52 | }); |
53 | 53 | } |
@@ -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 | } |
@@ -25,11 +25,11 @@ |
||
25 | 25 | */ |
26 | 26 | public function provideDependencies(Container $container) |
27 | 27 | { |
28 | - $container[static::PRODUCT_SET_CLIENT] = function (Container $container) { |
|
28 | + $container[static::PRODUCT_SET_CLIENT] = function(Container $container) { |
|
29 | 29 | return new CmsContentWidgetProductSetConnectorToProductSetBridgeSet($container->getLocator()->productSet()->client()); |
30 | 30 | }; |
31 | 31 | |
32 | - $container[static::PRODUCT_CLIENT] = function (Container $container) { |
|
32 | + $container[static::PRODUCT_CLIENT] = function(Container $container) { |
|
33 | 33 | return new CmsContentWidgetProductSetConnectorToProductBridge($container->getLocator()->product()->client()); |
34 | 34 | }; |
35 | 35 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function providePersistenceLayerDependencies(Container $container) |
25 | 25 | { |
26 | - $container[static::QUERY_CONTAINER_PRODUCT_SET] = function (Container $container) { |
|
26 | + $container[static::QUERY_CONTAINER_PRODUCT_SET] = function(Container $container) { |
|
27 | 27 | return new CmsContentWidgetProductSetConnectorProductSetQueryContainerBridge( |
28 | 28 | $container->getLocator()->productSet()->queryContainer() |
29 | 29 | ); |
@@ -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 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | protected function mergeSettings(array $defaultSettingsArray, array $settingsArray) |
46 | 46 | { |
47 | - $settingsArray = array_filter($settingsArray, function ($value) { |
|
47 | + $settingsArray = array_filter($settingsArray, function($value) { |
|
48 | 48 | return ($value !== null); |
49 | 49 | }); |
50 | 50 | $settingsArray += $defaultSettingsArray; |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | */ |
50 | 50 | protected function addConfigProfilerCollector(Application $app) |
51 | 51 | { |
52 | - $app->extend('data_collectors', function ($collectors) { |
|
53 | - $collectors[ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER] = function () { |
|
52 | + $app->extend('data_collectors', function($collectors) { |
|
53 | + $collectors[ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER] = function() { |
|
54 | 54 | return ConfigProfilerCollectorFactory::createConfigProfilerCollector(); |
55 | 55 | }; |
56 | 56 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | protected function addCollectorTemplates(Application $app) |
69 | 69 | { |
70 | - $app['data_collector.templates'] = $app->extend('data_collector.templates', function ($templates) { |
|
70 | + $app['data_collector.templates'] = $app->extend('data_collector.templates', function($templates) { |
|
71 | 71 | $templates[] = [ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER, $this->getTemplateName()]; |
72 | 72 | |
73 | 73 | return $templates; |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | protected function addPathToLoader(Application $app) |
123 | 123 | { |
124 | 124 | $loaderKey = $this->getLoaderKey(); |
125 | - $app[$loaderKey] = $app->extend($loaderKey, function (TwigFilesystemLoader $loader) { |
|
125 | + $app[$loaderKey] = $app->extend($loaderKey, function(TwigFilesystemLoader $loader) { |
|
126 | 126 | $pathToTemplates = $this->getPathToTemplates(); |
127 | 127 | if (method_exists($loader, 'addPath')) { |
128 | 128 | $loader->addPath($pathToTemplates); |