@@ -25,7 +25,7 @@ |
||
25 | 25 | public function register(Application $app) |
26 | 26 | { |
27 | 27 | $containerGlobals = new ContainerGlobals(); |
28 | - $containerGlobals[static::CLIENT_SESSION] = function () { |
|
28 | + $containerGlobals[static::CLIENT_SESSION] = function() { |
|
29 | 29 | $container = new Container(); |
30 | 30 | |
31 | 31 | return $container->getLocator()->session()->client(); |
@@ -242,7 +242,7 @@ |
||
242 | 242 | return redis.call("DEL", KEYS[1]) |
243 | 243 | end |
244 | 244 | return 0 |
245 | -LUA; |
|
245 | +lua; |
|
246 | 246 | } |
247 | 247 | |
248 | 248 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | For Zed: |
52 | 52 | session:lock:remove --zed <session_id> |
53 | -HELPTEXT; |
|
53 | +helptext; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | public function fromInteger($amount, $isoCode = null) |
65 | 65 | { |
66 | - return $this->moneyFacade->fromInteger($amount, $isoCode); |
|
66 | + return $this->moneyFacade->fromInteger($amount, $isoCode); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | } |
@@ -42,10 +42,10 @@ |
||
42 | 42 | |
43 | 43 | $builder->get(static::FIELD_PRODUCT_SET_WEIGHTS) |
44 | 44 | ->addModelTransformer(new CallbackTransformer( |
45 | - function ($productSetIds = null) { |
|
45 | + function($productSetIds = null) { |
|
46 | 46 | return $this->getFactory()->getUtilEncodingService()->encodeJson((array)$productSetIds); |
47 | 47 | }, |
48 | - function ($productSetIds = '{}') { |
|
48 | + function($productSetIds = '{}') { |
|
49 | 49 | return $this->getFactory()->getUtilEncodingService()->decodeJson($productSetIds, true); |
50 | 50 | } |
51 | 51 | )); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | public function configureOptions(OptionsResolver $resolver) |
46 | 46 | { |
47 | 47 | $resolver->setDefaults([ |
48 | - 'validation_groups' => function (FormInterface $form) { |
|
48 | + 'validation_groups' => function(FormInterface $form) { |
|
49 | 49 | $originalKey = $form->get(static::FIELD_PRODUCT_SET_KEY_ORIGINAL)->getData(); |
50 | 50 | $updatedKey = $form->get(static::FIELD_PRODUCT_SET_KEY)->getData(); |
51 | 51 | |
@@ -147,10 +147,10 @@ discard block |
||
147 | 147 | |
148 | 148 | $builder->get(static::FIELD_WEIGHT) |
149 | 149 | ->addModelTransformer(new CallbackTransformer( |
150 | - function ($weight) { |
|
150 | + function($weight) { |
|
151 | 151 | return $weight; |
152 | 152 | }, |
153 | - function ($weight) { |
|
153 | + function($weight) { |
|
154 | 154 | return (int)$weight; |
155 | 155 | } |
156 | 156 | )); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | public function configureOptions(OptionsResolver $resolver) |
49 | 49 | { |
50 | 50 | $resolver->setDefaults([ |
51 | - 'validation_groups' => function (FormInterface $form) { |
|
51 | + 'validation_groups' => function(FormInterface $form) { |
|
52 | 52 | $originalUrl = $form->getData()[static::FIELD_ORIGINAL_URL]; |
53 | 53 | $updatedUrl = $form->getData()[static::FIELD_URL]; |
54 | 54 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | protected function provideProductClient(Container $container) |
41 | 41 | { |
42 | - $container[static::CLIENT_PRODUCT] = function (Container $container) { |
|
42 | + $container[static::CLIENT_PRODUCT] = function(Container $container) { |
|
43 | 43 | return new CartVariantToProductClientBridge($container->getLocator()->product()->client()); |
44 | 44 | }; |
45 | 45 | return $container; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | protected function provideAvailabilityClient(Container $container) |
54 | 54 | { |
55 | - $container[static::CLIENT_AVAILABILITY] = function (Container $container) { |
|
55 | + $container[static::CLIENT_AVAILABILITY] = function(Container $container) { |
|
56 | 56 | return new CartVariantToAvailabilityClientBridge($container->getLocator()->availability()->client()); |
57 | 57 | }; |
58 | 58 | return $container; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | protected function addCollectorFacade(Container $container) |
51 | 51 | { |
52 | - $container[static::FACADE_COLLECTOR] = function (Container $container) { |
|
52 | + $container[static::FACADE_COLLECTOR] = function(Container $container) { |
|
53 | 53 | return new ProductReviewCollectorToCollectorBridge($container->getLocator()->collector()->facade()); |
54 | 54 | }; |
55 | 55 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | protected function addSearchFacade(Container $container) |
63 | 63 | { |
64 | - $container[static::FACADE_SEARCH] = function (Container $container) { |
|
64 | + $container[static::FACADE_SEARCH] = function(Container $container) { |
|
65 | 65 | return new ProductReviewCollectorToSearchBridge($container->getLocator()->search()->facade()); |
66 | 66 | }; |
67 | 67 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | protected function addDataReaderService(Container $container) |
75 | 75 | { |
76 | - $container[static::SERVICE_DATA_READER] = function (Container $container) { |
|
76 | + $container[static::SERVICE_DATA_READER] = function(Container $container) { |
|
77 | 77 | return $container->getLocator()->utilDataReader()->service(); |
78 | 78 | }; |
79 | 79 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | protected function addTouchQueryContainer(Container $container) |
87 | 87 | { |
88 | - $container[static::QUERY_CONTAINER_TOUCH] = function (Container $container) { |
|
88 | + $container[static::QUERY_CONTAINER_TOUCH] = function(Container $container) { |
|
89 | 89 | return $container->getLocator()->touch()->queryContainer(); |
90 | 90 | }; |
91 | 91 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | protected function addStore(Container $container) |
99 | 99 | { |
100 | - $container[static::STORE] = function () { |
|
100 | + $container[static::STORE] = function() { |
|
101 | 101 | return Store::getInstance(); |
102 | 102 | }; |
103 | 103 | } |