@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | protected function getZedPanelFunction(Environment $twig): TwigFunction |
48 | 48 | { |
49 | - return new TwigFunction(static::FUNCTION_NAME_PANEL, function (string $title, string $content, ?array $options = null, ?string $footer = null) use ($twig) { |
|
49 | + return new TwigFunction(static::FUNCTION_NAME_PANEL, function(string $title, string $content, ?array $options = null, ?string $footer = null) use ($twig) { |
|
50 | 50 | $defaultOptions = [ |
51 | 51 | 'class' => 'default', |
52 | 52 | 'id' => false, |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | protected function getTabsFunction(Environment $twig): TwigFunction |
49 | 49 | { |
50 | - return new TwigFunction(static::FUNCTION_NAME_TABS, function (Environment $twig, TabsViewTransfer $tabsViewTransfer, array $context = []) { |
|
50 | + return new TwigFunction(static::FUNCTION_NAME_TABS, function(Environment $twig, TabsViewTransfer $tabsViewTransfer, array $context = []) { |
|
51 | 51 | $context['tabsViewTransfer'] = $tabsViewTransfer; |
52 | 52 | |
53 | 53 | return $twig->render($this->getConfig()->getTabsDefaultTemplatePath(), $context); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | protected function getUrlDecodeFunction(): TwigFunction |
47 | 47 | { |
48 | - return new TwigFunction(static::FUNCTION_NAME_URL_DECODE, function (string $url) { |
|
48 | + return new TwigFunction(static::FUNCTION_NAME_URL_DECODE, function(string $url) { |
|
49 | 49 | return urldecode($url); |
50 | 50 | }, ['is_safe' => ['html']]); |
51 | 51 | } |
@@ -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 | ]; |
@@ -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 | } |