@@ -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 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | protected function addTouchFacade(Container $container) |
| 51 | 51 | { |
| 52 | - $container[static::FACADE_TOUCH] = function (Container $container) { |
|
| 52 | + $container[static::FACADE_TOUCH] = function(Container $container) { |
|
| 53 | 53 | return new CmsBlockToTouchBridge($container->getLocator()->touch()->facade()); |
| 54 | 54 | }; |
| 55 | 55 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | protected function addGlossaryFacade(Container $container) |
| 65 | 65 | { |
| 66 | - $container[static::FACADE_GLOSSARY] = function (Container $container) { |
|
| 66 | + $container[static::FACADE_GLOSSARY] = function(Container $container) { |
|
| 67 | 67 | return new CmsBlockToGlossaryBridge($container->getLocator()->glossary()->facade()); |
| 68 | 68 | }; |
| 69 | 69 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | protected function addLocaleFacade(Container $container) |
| 79 | 79 | { |
| 80 | - $container[static::FACADE_LOCALE] = function (Container $container) { |
|
| 80 | + $container[static::FACADE_LOCALE] = function(Container $container) { |
|
| 81 | 81 | return new CmsBlockToLocaleBridge($container->getLocator()->locale()->facade()); |
| 82 | 82 | }; |
| 83 | 83 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | protected function addGlossaryQueryContainer(Container $container) |
| 93 | 93 | { |
| 94 | - $container[static::QUERY_CONTAINER_GLOSSARY] = function (Container $container) { |
|
| 94 | + $container[static::QUERY_CONTAINER_GLOSSARY] = function(Container $container) { |
|
| 95 | 95 | return new CmsBlockToGlossaryQueryContainerBridge($container->getLocator()->glossary()->queryContainer()); |
| 96 | 96 | }; |
| 97 | 97 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | protected function addCmsBlockUpdatePlugins(Container $container) |
| 107 | 107 | { |
| 108 | - $container[static::PLUGIN_CMS_BLOCK_UPDATE] = function (Container $container) { |
|
| 108 | + $container[static::PLUGIN_CMS_BLOCK_UPDATE] = function(Container $container) { |
|
| 109 | 109 | return $this->getCmsBlockUpdatePlugins(); |
| 110 | 110 | }; |
| 111 | 111 | |
@@ -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 | }); |
@@ -23,8 +23,8 @@ |
||
| 23 | 23 | |
| 24 | 24 | use _generated\CmsBlockBusinessTesterActions; |
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Define custom actions here |
|
| 28 | - */ |
|
| 26 | + /** |
|
| 27 | + * Define custom actions here |
|
| 28 | + */ |
|
| 29 | 29 | |
| 30 | 30 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | protected function addNewRelicApi(Container $container) |
| 39 | 39 | { |
| 40 | - $container[static::NEW_RELIC_API] = function () { |
|
| 40 | + $container[static::NEW_RELIC_API] = function() { |
|
| 41 | 41 | return new NewRelicApi(); |
| 42 | 42 | }; |
| 43 | 43 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | protected function addUtilNetworkService(Container $container) |
| 53 | 53 | { |
| 54 | - $container[static::SERVICE_NETWORK] = function (Container $container) { |
|
| 54 | + $container[static::SERVICE_NETWORK] = function(Container $container) { |
|
| 55 | 55 | return $container->getLocator()->utilNetwork()->service(); |
| 56 | 56 | }; |
| 57 | 57 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | protected function addNewRelicApi(Container $container) |
| 42 | 42 | { |
| 43 | - $container[static::NEW_RELIC_API] = function () { |
|
| 43 | + $container[static::NEW_RELIC_API] = function() { |
|
| 44 | 44 | return new NewRelicApi(); |
| 45 | 45 | }; |
| 46 | 46 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | protected function addStore(Container $container) |
| 56 | 56 | { |
| 57 | - $container[static::STORE] = function () { |
|
| 57 | + $container[static::STORE] = function() { |
|
| 58 | 58 | return Store::getInstance(); |
| 59 | 59 | }; |
| 60 | 60 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | protected function addUtilNetworkService(Container $container) |
| 70 | 70 | { |
| 71 | - $container[static::SERVICE_NETWORK] = function (Container $container) { |
|
| 71 | + $container[static::SERVICE_NETWORK] = function(Container $container) { |
|
| 72 | 72 | return $container->getLocator()->utilNetwork()->service(); |
| 73 | 73 | }; |
| 74 | 74 | |