@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | protected function getButtonGroupFunction(): TwigFunction |
46 | 46 | { |
47 | - return new TwigFunction(static::FUNCTION_NAME_GROUP_ACTION_BUTTONS, function (array $buttons, string $title, array $options = []) { |
|
47 | + return new TwigFunction(static::FUNCTION_NAME_GROUP_ACTION_BUTTONS, function(array $buttons, string $title, array $options = []) { |
|
48 | 48 | if (!array_key_exists(ButtonGroupUrlGenerator::ICON, $options)) { |
49 | 49 | $options[ButtonGroupUrlGenerator::ICON] = $this->getDefaultIcon(); |
50 | 50 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | protected function getZedSubmitButtonFunction(Environment $twig): TwigFunction |
48 | 48 | { |
49 | - return new TwigFunction(static::FUNCTION_NAME_SUBMIT_BUTTON, function (string $value, array $attr = []) use ($twig) { |
|
49 | + return new TwigFunction(static::FUNCTION_NAME_SUBMIT_BUTTON, function(string $value, array $attr = []) use ($twig) { |
|
50 | 50 | return $twig->render( |
51 | 51 | $this->getConfig()->getSubmitButtonDefaultTemplatePath(), |
52 | 52 | [ |
@@ -61,7 +61,7 @@ |
||
61 | 61 | */ |
62 | 62 | protected function getButtonGroupFunction(): TwigFunction |
63 | 63 | { |
64 | - return new TwigFunction($this->getFunctionName(), function ($url, $title, $options = []) { |
|
64 | + return new TwigFunction($this->getFunctionName(), function($url, $title, $options = []) { |
|
65 | 65 | if (!array_key_exists(ButtonUrlGenerator::ICON, $options)) { |
66 | 66 | $options[ButtonUrlGenerator::ICON] = $this->getIcon(); |
67 | 67 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function register(Application $app) |
27 | 27 | { |
28 | - $app['form.type.extensions'] = $app->share(function () { |
|
28 | + $app['form.type.extensions'] = $app->share(function() { |
|
29 | 29 | return [ |
30 | 30 | new NoValidateTypeExtension(), |
31 | 31 | ]; |
@@ -47,7 +47,7 @@ |
||
47 | 47 | \SprykerTest\Glue\Testify\Helper\OpenApi3: |
48 | 48 | schema: http://localhost/api/schema.yml |
49 | 49 | -- |
50 | -EOF; |
|
50 | +eof; |
|
51 | 51 | |
52 | 52 | /** |
53 | 53 | * @var \Spryker\Glue\Testify\OpenApi3\SchemaObject\OpenApi|null |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | public function activateById(int $idCmsBlock): void |
99 | 99 | { |
100 | - $this->handleDatabaseTransaction(function () use ($idCmsBlock) { |
|
100 | + $this->handleDatabaseTransaction(function() use ($idCmsBlock) { |
|
101 | 101 | $this->updateIsActiveByIdTransaction($idCmsBlock, true); |
102 | 102 | $this->touchFacade->touchActive(CmsBlockConfig::RESOURCE_TYPE_CMS_BLOCK, $idCmsBlock); |
103 | 103 | }); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public function deactivateById(int $idCmsBlock): void |
112 | 112 | { |
113 | - $this->handleDatabaseTransaction(function () use ($idCmsBlock) { |
|
113 | + $this->handleDatabaseTransaction(function() use ($idCmsBlock) { |
|
114 | 114 | $this->updateIsActiveByIdTransaction($idCmsBlock, false); |
115 | 115 | $this->touchFacade->touchDeleted(CmsBlockConfig::RESOURCE_TYPE_CMS_BLOCK, $idCmsBlock); |
116 | 116 | }); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | ); |
138 | 138 | } |
139 | 139 | |
140 | - $this->handleDatabaseTransaction(function () use ($cmsBlockTransfer, $spyCmsBlock) { |
|
140 | + $this->handleDatabaseTransaction(function() use ($cmsBlockTransfer, $spyCmsBlock) { |
|
141 | 141 | $this->updateCmsBlockTransaction($cmsBlockTransfer, $spyCmsBlock); |
142 | 142 | $this->updateCmsBlockPluginsTransaction($cmsBlockTransfer); |
143 | 143 | }); |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $cmsBlockTransfer->setKey($this->cmsBlockKeyProvider->generateKey()); |
159 | 159 | } |
160 | 160 | |
161 | - $this->handleDatabaseTransaction(function () use ($cmsBlockTransfer) { |
|
161 | + $this->handleDatabaseTransaction(function() use ($cmsBlockTransfer) { |
|
162 | 162 | $this->createCmsBlockTransaction($cmsBlockTransfer); |
163 | 163 | $this->updateCmsBlockPluginsTransaction($cmsBlockTransfer); |
164 | 164 | }); |
@@ -60,7 +60,7 @@ |
||
60 | 60 | */ |
61 | 61 | protected function selectIdStores(ArrayObject $storeTransferCollection): array |
62 | 62 | { |
63 | - return array_map(function (StoreTransfer $storeTransfer) { |
|
63 | + return array_map(function(StoreTransfer $storeTransfer) { |
|
64 | 64 | return $storeTransfer->getIdStore(); |
65 | 65 | }, $storeTransferCollection->getArrayCopy()); |
66 | 66 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | return; |
104 | 104 | } |
105 | 105 | |
106 | - $this->handleDatabaseTransaction(function () use ($glossaryKeys) { |
|
106 | + $this->handleDatabaseTransaction(function() use ($glossaryKeys) { |
|
107 | 107 | $this->deleteGlossaryKeysTransaction($glossaryKeys); |
108 | 108 | }); |
109 | 109 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | */ |
116 | 116 | public function saveGlossary(CmsBlockGlossaryTransfer $cmsBlockGlossaryTransfer): CmsBlockGlossaryTransfer |
117 | 117 | { |
118 | - $this->handleDatabaseTransaction(function () use ($cmsBlockGlossaryTransfer) { |
|
118 | + $this->handleDatabaseTransaction(function() use ($cmsBlockGlossaryTransfer) { |
|
119 | 119 | $this->saveCmsGlossaryTransaction($cmsBlockGlossaryTransfer); |
120 | 120 | }); |
121 | 121 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | protected function addClientStorage(Container $container): Container |
39 | 39 | { |
40 | - $container->set(static::CLIENT_STORAGE, function (Container $container) { |
|
40 | + $container->set(static::CLIENT_STORAGE, function(Container $container) { |
|
41 | 41 | return new CmsBlockCategoryStorageToStorageClientBridge($container->getLocator()->storage()->client()); |
42 | 42 | }); |
43 | 43 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | protected function addServiceSynchronization(Container $container): Container |
53 | 53 | { |
54 | - $container->set(static::SERVICE_SYNCHRONIZATION, function (Container $container) { |
|
54 | + $container->set(static::SERVICE_SYNCHRONIZATION, function(Container $container) { |
|
55 | 55 | return new CmsBlockCategoryStorageToSynchronizationServiceBridge($container->getLocator()->synchronization()->service()); |
56 | 56 | }); |
57 | 57 |