@@ -24,11 +24,11 @@ |
||
24 | 24 | */ |
25 | 25 | public function provideBusinessLayerDependencies(Container $container) |
26 | 26 | { |
27 | - $container[static::PLUGIN_PROPEL_CONNECTION] = function () { |
|
27 | + $container[static::PLUGIN_PROPEL_CONNECTION] = function() { |
|
28 | 28 | return Propel::getConnection(); |
29 | 29 | }; |
30 | 30 | |
31 | - $container[static::SERVICE_DATA] = function (Container $container) { |
|
31 | + $container[static::SERVICE_DATA] = function(Container $container) { |
|
32 | 32 | return $container->getLocator()->utilDataReader()->service(); |
33 | 33 | }; |
34 | 34 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | return $currentController; |
44 | 44 | } |
45 | 45 | |
46 | - $newController = function () use ($controller, $action) { |
|
46 | + $newController = function() use ($controller, $action) { |
|
47 | 47 | |
48 | 48 | MessengerConfig::setMessageTray(MessengerConstants::IN_MEMORY_TRAY); |
49 | 49 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function getCallable() |
43 | 43 | { |
44 | - return Middleware::mapRequest(function (RequestInterface $request) { |
|
44 | + return Middleware::mapRequest(function(RequestInterface $request) { |
|
45 | 45 | if ($request->hasHeader('X-Yves-Host')) { |
46 | 46 | $request = $request->withAddedHeader('X-Request-ID', $this->utilNetworkService->getRequestId()); |
47 | 47 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function addStorageClient(Container $container) |
36 | 36 | { |
37 | - $container[static::CLIENT_STORAGE] = function (Container $container) { |
|
37 | + $container[static::CLIENT_STORAGE] = function(Container $container) { |
|
38 | 38 | return $container->getLocator()->storage()->client(); |
39 | 39 | }; |
40 | 40 |
@@ -55,10 +55,10 @@ discard block |
||
55 | 55 | public function queryBundledProductBySku($sku) |
56 | 56 | { |
57 | 57 | return $this->getFactory() |
58 | - ->createProductBundleQuery() |
|
59 | - ->useSpyProductRelatedByFkBundledProductQuery() |
|
60 | - ->filterBySku($sku) |
|
61 | - ->endUse(); |
|
58 | + ->createProductBundleQuery() |
|
59 | + ->useSpyProductRelatedByFkBundledProductQuery() |
|
60 | + ->filterBySku($sku) |
|
61 | + ->endUse(); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -85,8 +85,8 @@ discard block |
||
85 | 85 | public function queryBundleByIdProductBundle($idProductBundle) |
86 | 86 | { |
87 | 87 | return $this->getFactory() |
88 | - ->createProductBundleQuery() |
|
89 | - ->filterByIdProductBundle($idProductBundle); |
|
88 | + ->createProductBundleQuery() |
|
89 | + ->filterByIdProductBundle($idProductBundle); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function queryStockByProducts($idProduct) |
32 | 32 | { |
33 | - return $this->stockQueryContainer->queryStockByProducts($idProduct); |
|
33 | + return $this->stockQueryContainer->queryStockByProducts($idProduct); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | } |
@@ -120,7 +120,7 @@ |
||
120 | 120 | { |
121 | 121 | usort( |
122 | 122 | $stockProducts, |
123 | - function (StockProductTransfer $stockProductLeftTransfer, StockProductTransfer $stockProductRightTransfer) { |
|
123 | + function(StockProductTransfer $stockProductLeftTransfer, StockProductTransfer $stockProductRightTransfer) { |
|
124 | 124 | return strcmp($stockProductLeftTransfer->getStockType(), $stockProductRightTransfer->getStockType()); |
125 | 125 | } |
126 | 126 | ); |
@@ -33,10 +33,10 @@ |
||
33 | 33 | */ |
34 | 34 | protected function build(TabsViewTransfer $tabsViewTransfer) |
35 | 35 | { |
36 | - $this->createPlaceHolderTabs($tabsViewTransfer) |
|
36 | + $this->createPlaceHolderTabs($tabsViewTransfer) |
|
37 | 37 | ->setFooter($tabsViewTransfer); |
38 | 38 | |
39 | - return $tabsViewTransfer; |
|
39 | + return $tabsViewTransfer; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -18,10 +18,10 @@ |
||
18 | 18 | protected function createArrayObjectModelTransformer() |
19 | 19 | { |
20 | 20 | return new CallbackTransformer( |
21 | - function ($value) { |
|
21 | + function($value) { |
|
22 | 22 | return (array)$value; |
23 | 23 | }, |
24 | - function ($value) { |
|
24 | + function($value) { |
|
25 | 25 | return new ArrayObject($value); |
26 | 26 | } |
27 | 27 | ); |