@@ -755,7 +755,7 @@ |
||
755 | 755 | $discountFacade = $this->createDiscountFacade(); |
756 | 756 | $factory = new DiscountBusinessFactory(); |
757 | 757 | $container = new Container(); |
758 | - $container[$dependencyType] = function () use ($discountRulePluginMock) { |
|
758 | + $container[$dependencyType] = function() use ($discountRulePluginMock) { |
|
759 | 759 | return [ |
760 | 760 | $discountRulePluginMock, |
761 | 761 | ]; |
@@ -725,7 +725,7 @@ |
||
725 | 725 | } |
726 | 726 | |
727 | 727 | /** |
728 | - * @return \Generated\Shared\Transfer\DiscountConfiguratorTransfer |
|
728 | + * @return string|null |
|
729 | 729 | */ |
730 | 730 | protected function createDiscountConfiguratorTransfer() |
731 | 731 | { |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | } |
364 | 364 | |
365 | 365 | /** |
366 | - * @param \Generated\Shared\Transfer\CmsPageLocalizedAttributesTransfer[]|\ArrayObject $cmsPageLocalizedAttributesTransfers |
|
366 | + * @param ArrayObject $cmsPageLocalizedAttributesTransfers |
|
367 | 367 | * @param \Orm\Zed\Cms\Persistence\SpyCmsPage $pageEntity |
368 | 368 | * |
369 | 369 | * @return void |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | } |
382 | 382 | |
383 | 383 | /** |
384 | - * @param \Generated\Shared\Transfer\CmsPageLocalizedAttributesTransfer[]|\ArrayObject $cmsPageLocalizedAttributesTransfers |
|
384 | + * @param ArrayObject $cmsPageLocalizedAttributesTransfers |
|
385 | 385 | * @param \Orm\Zed\Cms\Persistence\SpyCmsPage $pageEntity |
386 | 386 | * |
387 | 387 | * @return void |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function getFunctions(Application $application) |
29 | 29 | { |
30 | 30 | return [ |
31 | - new Twig_SimpleFunction('spyCmsBlockPlaceholder', function (array $context, $identifier) use ($application) { |
|
31 | + new Twig_SimpleFunction('spyCmsBlockPlaceholder', function(array $context, $identifier) use ($application) { |
|
32 | 32 | $placeholders = $context['placeholders']; |
33 | 33 | |
34 | 34 | $translation = ''; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function activateById($idCmsBlock) |
83 | 83 | { |
84 | - $this->handleDatabaseTransaction(function () use ($idCmsBlock) { |
|
84 | + $this->handleDatabaseTransaction(function() use ($idCmsBlock) { |
|
85 | 85 | $this->updateIsActiveByIdTransaction($idCmsBlock, true); |
86 | 86 | $this->touchFacade->touchActive(CmsBlockConfig::RESOURCE_TYPE_CMS_BLOCK, $idCmsBlock); |
87 | 87 | }); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function deactivateById($idCmsBlock) |
96 | 96 | { |
97 | - $this->handleDatabaseTransaction(function () use ($idCmsBlock) { |
|
97 | + $this->handleDatabaseTransaction(function() use ($idCmsBlock) { |
|
98 | 98 | $this->updateIsActiveByIdTransaction($idCmsBlock, false); |
99 | 99 | $this->touchFacade->touchDeleted(CmsBlockConfig::RESOURCE_TYPE_CMS_BLOCK, $idCmsBlock); |
100 | 100 | }); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | ); |
127 | 127 | } |
128 | 128 | |
129 | - $this->handleDatabaseTransaction(function () use ($cmsBlockTransfer, $spyCmsBlock) { |
|
129 | + $this->handleDatabaseTransaction(function() use ($cmsBlockTransfer, $spyCmsBlock) { |
|
130 | 130 | $this->updateCmsBlockTransaction($cmsBlockTransfer, $spyCmsBlock); |
131 | 131 | $this->updateCmsBlockPluginsTransaction($cmsBlockTransfer); |
132 | 132 | }); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | { |
144 | 144 | $cmsBlockTransfer->requireFkTemplate(); |
145 | 145 | |
146 | - $this->handleDatabaseTransaction(function () use ($cmsBlockTransfer) { |
|
146 | + $this->handleDatabaseTransaction(function() use ($cmsBlockTransfer) { |
|
147 | 147 | $this->createCmsBlockTransaction($cmsBlockTransfer); |
148 | 148 | $this->updateCmsBlockPluginsTransaction($cmsBlockTransfer); |
149 | 149 | }); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | - * @return array |
|
27 | + * @return string[] |
|
28 | 28 | */ |
29 | 29 | public function getTemplatePaths() |
30 | 30 | { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * @param array $paths |
58 | 58 | * |
59 | - * @return array |
|
59 | + * @return string[] |
|
60 | 60 | */ |
61 | 61 | protected function addCoreTemplatePaths(array $paths) |
62 | 62 | { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @return array |
|
42 | + * @return Twig_SimpleFunction[] |
|
43 | 43 | */ |
44 | 44 | public function getFunctions() |
45 | 45 | { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function provideDependencies(Container $container) |
24 | 24 | { |
25 | - $container[static::CMS_BLOCK_TWIG_CONTENT_RENDERER_PLUGIN] = function (Container $container) { |
|
25 | + $container[static::CMS_BLOCK_TWIG_CONTENT_RENDERER_PLUGIN] = function(Container $container) { |
|
26 | 26 | return $this->getCmsBlockTwigContentRendererPlugin(); |
27 | 27 | }; |
28 | 28 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public function register(Application $app) |
29 | 29 | { |
30 | 30 | $app['twig'] = $app->share( |
31 | - $app->extend('twig', function (Twig_Environment $twig) { |
|
31 | + $app->extend('twig', function(Twig_Environment $twig) { |
|
32 | 32 | return $this->registerCmsContentWidgets($twig); |
33 | 33 | }) |
34 | 34 | ); |
@@ -25,11 +25,11 @@ |
||
25 | 25 | */ |
26 | 26 | public function provideDependencies(Container $container) |
27 | 27 | { |
28 | - $container[static::CMS_CONTENT_WIDGET_PLUGINS] = function (Container $container) { |
|
28 | + $container[static::CMS_CONTENT_WIDGET_PLUGINS] = function(Container $container) { |
|
29 | 29 | return $this->getCmsContentWidgetPlugins(); |
30 | 30 | }; |
31 | 31 | |
32 | - $container[static::TWIG_ENVIRONMENT] = function (Container $container) { |
|
32 | + $container[static::TWIG_ENVIRONMENT] = function(Container $container) { |
|
33 | 33 | return $this->getTwigEnvironment(); |
34 | 34 | }; |
35 | 35 |