@@ -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 | /** |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | protected function addSalesAggregatorFacade(Container $container) |
57 | 57 | { |
58 | - $container[static::FACADE_SALES_AGGREGATOR] = function (Container $container) { |
|
58 | + $container[static::FACADE_SALES_AGGREGATOR] = function(Container $container) { |
|
59 | 59 | return new RatepayToSalesAggregatorBridge($container->getLocator()->salesAggregator()->facade()); |
60 | 60 | }; |
61 | 61 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | protected function addProductFacade(Container $container) |
71 | 71 | { |
72 | - $container[self::FACADE_PRODUCT] = function (Container $container) { |
|
72 | + $container[self::FACADE_PRODUCT] = function(Container $container) { |
|
73 | 73 | return new RatepayToProductBridge($container->getLocator()->product()->facade()); |
74 | 74 | }; |
75 | 75 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function addGlossaryFacade(Container $container) |
85 | 85 | { |
86 | - $container[self::FACADE_GLOSSARY] = function (Container $container) { |
|
86 | + $container[self::FACADE_GLOSSARY] = function(Container $container) { |
|
87 | 87 | return new RatepayToGlossaryBridge($container->getLocator()->glossary()->facade()); |
88 | 88 | }; |
89 | 89 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | protected function addMoneyFacade(Container $container) |
99 | 99 | { |
100 | - $container[self::FACADE_MONEY] = function (Container $container) { |
|
100 | + $container[self::FACADE_MONEY] = function(Container $container) { |
|
101 | 101 | return new RatepayToMoneyBridge($container->getLocator()->money()->facade()); |
102 | 102 | }; |
103 | 103 |
@@ -273,9 +273,9 @@ |
||
273 | 273 | ->useSpyTaxSetQuery() |
274 | 274 | ->useSpyTaxSetTaxQuery() |
275 | 275 | ->useSpyTaxRateQuery() |
276 | - ->filterByFkCountry($countryEntity->getIdCountry()) |
|
276 | + ->filterByFkCountry($countryEntity->getIdCountry()) |
|
277 | 277 | ->_or() |
278 | - ->filterByName(TaxConstants::TAX_EXEMPT_PLACEHOLDER) |
|
278 | + ->filterByName(TaxConstants::TAX_EXEMPT_PLACEHOLDER) |
|
279 | 279 | ->endUse() |
280 | 280 | ->endUse() |
281 | 281 | ->withColumn(SpyTaxSetTableMap::COL_NAME) |
@@ -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 | } |