@@ -192,8 +192,8 @@ |
||
192 | 192 | public function calculateExpenseTotal(CalculableObjectTransfer $calculableObjectTransfer) |
193 | 193 | { |
194 | 194 | $this->getFactory() |
195 | - ->createExpenseTotalCalculator() |
|
196 | - ->recalculate($calculableObjectTransfer); |
|
195 | + ->createExpenseTotalCalculator() |
|
196 | + ->recalculate($calculableObjectTransfer); |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
@@ -68,7 +68,7 @@ |
||
68 | 68 | private function createClosure() |
69 | 69 | { |
70 | 70 | $dependencies = $this->getDependencies(); |
71 | - $callback = function (TestifyConfiguratorInterface $configurator) use ($dependencies) { |
|
71 | + $callback = function(TestifyConfiguratorInterface $configurator) use ($dependencies) { |
|
72 | 72 | foreach ($dependencies as $key => $value) { |
73 | 73 | $configurator->getContainer()->set($key, $value); |
74 | 74 | } |
@@ -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 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | public function getFunctions(Application $application) |
30 | 30 | { |
31 | 31 | return [ |
32 | - new Twig_SimpleFunction('spyCmsBlockPlaceholder', function (array $context, $identifier) use ($application) { |
|
32 | + new Twig_SimpleFunction('spyCmsBlockPlaceholder', function(array $context, $identifier) use ($application) { |
|
33 | 33 | $placeholders = $context['placeholders']; |
34 | 34 | |
35 | 35 | $translation = ''; |
@@ -89,8 +89,7 @@ |
||
89 | 89 | $blockNames = $this->getBlockNamesForOption($optionKey, $resources, $localeName); |
90 | 90 | |
91 | 91 | $availableBlockNames = $availableBlockNames === null ? |
92 | - $blockNames : |
|
93 | - array_intersect($availableBlockNames, $blockNames); |
|
92 | + $blockNames : array_intersect($availableBlockNames, $blockNames); |
|
94 | 93 | } |
95 | 94 | |
96 | 95 | return $availableBlockNames ?: []; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | protected function addKvStorage(Container $container) |
38 | 38 | { |
39 | - $container[static::KV_STORAGE] = function (Container $container) { |
|
39 | + $container[static::KV_STORAGE] = function(Container $container) { |
|
40 | 40 | return new CmsBlockToStorageClientBridge($container->getLocator()->storage()->client()); |
41 | 41 | }; |
42 | 42 |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | return; |
92 | 92 | } |
93 | 93 | |
94 | - $this->handleDatabaseTransaction(function () use ($glossaryKeys) { |
|
94 | + $this->handleDatabaseTransaction(function() use ($glossaryKeys) { |
|
95 | 95 | $this->deleteGlossaryKeysTransaction($glossaryKeys); |
96 | 96 | }); |
97 | 97 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | public function saveGlossary(CmsBlockGlossaryTransfer $cmsBlockGlossaryTransfer) |
105 | 105 | { |
106 | - $this->handleDatabaseTransaction(function () use ($cmsBlockGlossaryTransfer) { |
|
106 | + $this->handleDatabaseTransaction(function() use ($cmsBlockGlossaryTransfer) { |
|
107 | 107 | $this->saveCmsGlossaryTransaction($cmsBlockGlossaryTransfer); |
108 | 108 | }); |
109 | 109 |
@@ -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 | }); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function provideCommunicationLayerDependencies(Container $container) |
62 | 62 | { |
63 | - $container[static::SERVICE_DATE_FORMATTER] = function (Container $container) { |
|
63 | + $container[static::SERVICE_DATE_FORMATTER] = function(Container $container) { |
|
64 | 64 | return $container->getLocator()->utilDateTime()->service(); |
65 | 65 | }; |
66 | 66 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | protected function provideApiQueryContainer(Container $container) |
76 | 76 | { |
77 | - $container[static::QUERY_CONTAINER_API] = function (Container $container) { |
|
77 | + $container[static::QUERY_CONTAINER_API] = function(Container $container) { |
|
78 | 78 | return new CustomerApiToApiBridge($container->getLocator()->api()->queryContainer()); |
79 | 79 | }; |
80 | 80 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | protected function provideApiQueryBuilderQueryContainer(Container $container) |
90 | 90 | { |
91 | - $container[static::QUERY_CONTAINER_API_QUERY_BUILDER] = function (Container $container) { |
|
91 | + $container[static::QUERY_CONTAINER_API_QUERY_BUILDER] = function(Container $container) { |
|
92 | 92 | return new CustomerApiToApiQueryBuilderBridge($container->getLocator()->apiQueryBuilder()->queryContainer()); |
93 | 93 | }; |
94 | 94 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | protected function provideCustomerFacade(Container $container) |
104 | 104 | { |
105 | - $container[static::FACADE_CUSTOMER] = function (Container $container) { |
|
105 | + $container[static::FACADE_CUSTOMER] = function(Container $container) { |
|
106 | 106 | return new CustomerApiToCustomerBridge($container->getLocator()->customer()->facade()); |
107 | 107 | }; |
108 | 108 | return $container; |