@@ -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) |
@@ -39,7 +39,7 @@ |
||
39 | 39 | /** |
40 | 40 | * @param string $request |
41 | 41 | * |
42 | - * @return \Spryker\Zed\Ratepay\Business\Api\Model\Response\BaseResponse |
|
42 | + * @return \Spryker\Zed\Ratepay\Business\Api\Model\Response\ResponseInterface |
|
43 | 43 | */ |
44 | 44 | protected function sendRequest($request) |
45 | 45 | { |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
113 | - * @param \Generated\Shared\Transfer\ProductConcreteTransfer $productConcreteTransfer |
|
113 | + * @param ProductConcreteTransfer|null $productConcreteTransfer |
|
114 | 114 | * @param bool $isActive |
115 | 115 | * |
116 | 116 | * @return void |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
143 | - * @param \Generated\Shared\Transfer\ProductConcreteTransfer $productConcreteTransfer |
|
143 | + * @param ProductConcreteTransfer|null $productConcreteTransfer |
|
144 | 144 | * |
145 | 145 | * @return \Generated\Shared\Transfer\ProductAbstractTransfer|null |
146 | 146 | */ |
@@ -718,9 +718,9 @@ |
||
718 | 718 | */ |
719 | 719 | public function activateProductConcrete($idProductConcrete) |
720 | 720 | { |
721 | - $this->getFactory() |
|
722 | - ->createProductConcreteActivator() |
|
723 | - ->activateProductConcrete($idProductConcrete); |
|
721 | + $this->getFactory() |
|
722 | + ->createProductConcreteActivator() |
|
723 | + ->activateProductConcrete($idProductConcrete); |
|
724 | 724 | } |
725 | 725 | |
726 | 726 | /** |
@@ -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 | } |