@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | protected function addStore(Container $container) |
43 | 43 | { |
44 | - $container[static::STORE] = function () { |
|
44 | + $container[static::STORE] = function() { |
|
45 | 45 | return $this->getStore(); |
46 | 46 | }; |
47 | 47 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | protected function addMoneyParser(Container $container) |
65 | 65 | { |
66 | - $container[static::MONEY_PARSER] = function () { |
|
66 | + $container[static::MONEY_PARSER] = function() { |
|
67 | 67 | $moneyToParserBridge = new MoneyToParserBridge($this->getIntlMoneyParser()); |
68 | 68 | |
69 | 69 | return $moneyToParserBridge; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function addStore(Container $container) |
46 | 46 | { |
47 | - $container[static::STORE] = function () { |
|
47 | + $container[static::STORE] = function() { |
|
48 | 48 | return $this->getStore(); |
49 | 49 | }; |
50 | 50 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | protected function addCurrencyPlugin(Container $container) |
60 | 60 | { |
61 | - $container[static::PLUGIN_CURRENCY] = function () { |
|
61 | + $container[static::PLUGIN_CURRENCY] = function() { |
|
62 | 62 | return new CurrencyPlugin(); |
63 | 63 | }; |
64 | 64 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | protected function addMoneyParser(Container $container) |
82 | 82 | { |
83 | - $container[static::MONEY_PARSER] = function () { |
|
83 | + $container[static::MONEY_PARSER] = function() { |
|
84 | 84 | $moneyToParserBridge = new MoneyToParserBridge($this->getIntlMoneyParser()); |
85 | 85 | |
86 | 86 | return $moneyToParserBridge; |
@@ -154,7 +154,7 @@ |
||
154 | 154 | */ |
155 | 155 | public function getAvailableStockTypes() |
156 | 156 | { |
157 | - return $this->getFactory()->createReaderModel()->getStockTypes(); |
|
157 | + return $this->getFactory()->createReaderModel()->getStockTypes(); |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | /** |
@@ -32,6 +32,6 @@ |
||
32 | 32 | */ |
33 | 33 | public function check(CartChangeTransfer $cartChangeTransfer) |
34 | 34 | { |
35 | - return $this->getFacade()->preCheckCartAvailability($cartChangeTransfer); |
|
35 | + return $this->getFacade()->preCheckCartAvailability($cartChangeTransfer); |
|
36 | 36 | } |
37 | 37 | } |
@@ -31,6 +31,6 @@ |
||
31 | 31 | */ |
32 | 32 | public function saveOrder(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponse) |
33 | 33 | { |
34 | - $this->getFacade()->saveSalesOrderBundleItems($quoteTransfer, $checkoutResponse); |
|
34 | + $this->getFacade()->saveSalesOrderBundleItems($quoteTransfer, $checkoutResponse); |
|
35 | 35 | } |
36 | 36 | } |
@@ -33,11 +33,11 @@ discard block |
||
33 | 33 | |
34 | 34 | $container = $this->provideStore($container); |
35 | 35 | |
36 | - $container[static::SEARCH_CONFIG_BUILDER] = function (Container $container) { |
|
36 | + $container[static::SEARCH_CONFIG_BUILDER] = function(Container $container) { |
|
37 | 37 | return $this->createSearchConfigBuilderPlugin($container); |
38 | 38 | }; |
39 | 39 | |
40 | - $container[static::SEARCH_CONFIG_EXPANDER_PLUGINS] = function (Container $container) { |
|
40 | + $container[static::SEARCH_CONFIG_EXPANDER_PLUGINS] = function(Container $container) { |
|
41 | 41 | return $this->createSearchConfigExpanderPlugins($container); |
42 | 42 | }; |
43 | 43 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | protected function addMoneyPlugin(Container $container) |
55 | 55 | { |
56 | - $container[static::PLUGIN_MONEY] = function () { |
|
56 | + $container[static::PLUGIN_MONEY] = function() { |
|
57 | 57 | return new MoneyPlugin(); |
58 | 58 | }; |
59 | 59 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | protected function provideStore(Container $container) |
94 | 94 | { |
95 | - $container[static::STORE] = function () { |
|
95 | + $container[static::STORE] = function() { |
|
96 | 96 | return Store::getInstance(); |
97 | 97 | }; |
98 | 98 |
@@ -154,7 +154,7 @@ |
||
154 | 154 | } |
155 | 155 | |
156 | 156 | $constraints[] = new Callback([ |
157 | - 'callback' => function ($name, ExecutionContextInterface $context) use ($customerGroupQuery) { |
|
157 | + 'callback' => function($name, ExecutionContextInterface $context) use ($customerGroupQuery) { |
|
158 | 158 | if ($customerGroupQuery->findByName($name)->count() > 0) { |
159 | 159 | $context->addViolation('Name is already used'); |
160 | 160 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | protected function addConfig(Container $container) |
37 | 37 | { |
38 | - $container[self::CONFIG] = function () { |
|
38 | + $container[self::CONFIG] = function() { |
|
39 | 39 | return Config::getInstance(); |
40 | 40 | }; |
41 | 41 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function provideBusinessLayerDependencies(Container $container) |
29 | 29 | { |
30 | - $container[self::STORE_CONFIG] = function (Container $container) { |
|
30 | + $container[self::STORE_CONFIG] = function(Container $container) { |
|
31 | 31 | return Store::getInstance(); |
32 | 32 | }; |
33 | 33 | |
@@ -41,11 +41,11 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function provideCommunicationLayerDependencies(Container $container) |
43 | 43 | { |
44 | - $container[self::FACADE_COUNTRY] = function (Container $container) { |
|
44 | + $container[self::FACADE_COUNTRY] = function(Container $container) { |
|
45 | 45 | return new TaxToCountryBridge($container->getLocator()->country()->facade()); |
46 | 46 | }; |
47 | 47 | |
48 | - $container[self::SERVICE_DATE_FORMATTER] = function (Container $container) { |
|
48 | + $container[self::SERVICE_DATE_FORMATTER] = function(Container $container) { |
|
49 | 49 | return $container->getLocator()->utilDateTime()->service(); |
50 | 50 | }; |
51 | 51 | } |