@@ -75,10 +75,10 @@ |
||
75 | 75 | $builder->add(static::FIELD_ALL, ChoiceType::class, [ |
76 | 76 | 'required' => false, |
77 | 77 | 'choices' => $options[static::OPTION_ALL_ARRAY], |
78 | - 'choice_value' => function ($choice) { |
|
78 | + 'choice_value' => function($choice) { |
|
79 | 79 | return $choice ?? true; |
80 | 80 | }, |
81 | - 'choice_attr' => function ($choice, $key, $value) { |
|
81 | + 'choice_attr' => function($choice, $key, $value) { |
|
82 | 82 | return [ |
83 | 83 | 'data-disable' => $value, |
84 | 84 | 'data-inputs' => $this->getFactory()->getUtilEncoding()->encodeJson([static::FIELD_CATEGORY_IDS]), |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function saveProductList(ProductListTransfer $productListTransfer): ProductListTransfer |
86 | 86 | { |
87 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productListTransfer) { |
|
87 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productListTransfer) { |
|
88 | 88 | return $this->executeSaveProductListTransaction($productListTransfer); |
89 | 89 | }); |
90 | 90 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function createProductList(ProductListTransfer $productListTransfer): ProductListResponseTransfer |
98 | 98 | { |
99 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productListTransfer) { |
|
99 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productListTransfer) { |
|
100 | 100 | return $this->executeCreateProductListTransaction($productListTransfer); |
101 | 101 | }); |
102 | 102 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function updateProductList(ProductListTransfer $productListTransfer): ProductListResponseTransfer |
110 | 110 | { |
111 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productListTransfer) { |
|
111 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productListTransfer) { |
|
112 | 112 | return $this->executeUpdateProductListTransaction($productListTransfer); |
113 | 113 | }); |
114 | 114 | } |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | return $productListResponseTransfer; |
131 | 131 | } |
132 | 132 | |
133 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productListTransfer, $productListResponseTransfer) { |
|
133 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productListTransfer, $productListResponseTransfer) { |
|
134 | 134 | return $this->executeDeleteProductListTransaction($productListTransfer, $productListResponseTransfer); |
135 | 135 | }); |
136 | 136 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | protected function addFormFactory(ContainerInterface $container): ContainerInterface |
56 | 56 | { |
57 | - $container->set(static::SERVICE_FORM_FACTORY, function () use ($container) { |
|
57 | + $container->set(static::SERVICE_FORM_FACTORY, function() use ($container) { |
|
58 | 58 | $formFactoryBuilder = $this->getFactory() |
59 | 59 | ->createFormFactoryBuilder(); |
60 | 60 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | protected function addFormCsrfProvider(ContainerInterface $container): ContainerInterface |
77 | 77 | { |
78 | - $container->set(static::SERVICE_FORM_CSRF_PROVIDER, function (ContainerInterface $container) { |
|
78 | + $container->set(static::SERVICE_FORM_CSRF_PROVIDER, function(ContainerInterface $container) { |
|
79 | 79 | return $this->createCsrfTokenManager($container); |
80 | 80 | }); |
81 | 81 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | protected function addValidatorService(ContainerInterface $container): ContainerInterface |
45 | 45 | { |
46 | - $container->set(static::SERVICE_VALIDATOR, function (ContainerInterface $container) { |
|
46 | + $container->set(static::SERVICE_VALIDATOR, function(ContainerInterface $container) { |
|
47 | 47 | $validatorBuilder = $this->getFactory()->createValidatorBuilder(); |
48 | 48 | |
49 | 49 | $validatorBuilder = $this->extendValidator($validatorBuilder, $container); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | protected function addFormFactory(ContainerInterface $container): ContainerInterface |
56 | 56 | { |
57 | - $container->set(static::SERVICE_FORM_FACTORY, function () use ($container) { |
|
57 | + $container->set(static::SERVICE_FORM_FACTORY, function() use ($container) { |
|
58 | 58 | $formFactoryBuilder = $this->getFactory() |
59 | 59 | ->createFormFactoryBuilder(); |
60 | 60 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | protected function addFormCsrfProvider(ContainerInterface $container): ContainerInterface |
77 | 77 | { |
78 | - $container->set(static::SERVICE_FORM_CSRF_PROVIDER, function (ContainerInterface $container) { |
|
78 | + $container->set(static::SERVICE_FORM_CSRF_PROVIDER, function(ContainerInterface $container) { |
|
79 | 79 | return $this->createCsrfTokenManager($container); |
80 | 80 | }); |
81 | 81 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | protected function addValidatorService(ContainerInterface $container): ContainerInterface |
45 | 45 | { |
46 | - $container->set(static::SERVICE_VALIDATOR, function (ContainerInterface $container) { |
|
46 | + $container->set(static::SERVICE_VALIDATOR, function(ContainerInterface $container) { |
|
47 | 47 | $validatorBuilder = $this->getFactory()->createValidatorBuilder(); |
48 | 48 | |
49 | 49 | $validatorBuilder = $this->extendValidator($validatorBuilder, $container); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | public function update(StoreRelationTransfer $storeRelationTransfer): void |
47 | 47 | { |
48 | - $this->getTransactionHandler()->handleTransaction(function () use ($storeRelationTransfer) { |
|
48 | + $this->getTransactionHandler()->handleTransaction(function() use ($storeRelationTransfer) { |
|
49 | 49 | $this->executeUpdateStoreRelationTransaction($storeRelationTransfer); |
50 | 50 | }); |
51 | 51 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $userTransfer = $this->createAgent($seedData); |
30 | 30 | $userTransfer = $this->registerAgent($userTransfer); |
31 | 31 | |
32 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($userTransfer) { |
|
32 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($userTransfer) { |
|
33 | 33 | $this->debug(sprintf('Deactivating User: %s', $userTransfer->getUsername())); |
34 | 34 | $this->getUserFacade()->deactivateUser($userTransfer->getIdUser()); |
35 | 35 | }); |
@@ -69,16 +69,16 @@ |
||
69 | 69 | { |
70 | 70 | /** @var \Spryker\Yves\Session\Plugin\Application\SessionApplicationPlugin $sessionApplicationPlugin */ |
71 | 71 | $sessionApplicationPlugin = Stub::make(SessionApplicationPlugin::class, [ |
72 | - 'getConfig' => function () { |
|
72 | + 'getConfig' => function() { |
|
73 | 73 | return $this->getConfig(); |
74 | 74 | }, |
75 | - 'getFactory' => function () { |
|
75 | + 'getFactory' => function() { |
|
76 | 76 | return $this->getFactory(); |
77 | 77 | }, |
78 | - 'getClient' => function () { |
|
78 | + 'getClient' => function() { |
|
79 | 79 | return $this->getClient(); |
80 | 80 | }, |
81 | - 'isSessionTestEnabled' => function () { |
|
81 | + 'isSessionTestEnabled' => function() { |
|
82 | 82 | return true; |
83 | 83 | }, |
84 | 84 | ]); |