@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | protected function addLocalePlugin(Container $container): Container |
| 54 | 54 | { |
| 55 | - $container->set(static::PLUGIN_LOCALE, function (): LocalePluginInterface { |
|
| 55 | + $container->set(static::PLUGIN_LOCALE, function(): LocalePluginInterface { |
|
| 56 | 56 | return $this->getLocalePlugin(); |
| 57 | 57 | }); |
| 58 | 58 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | protected function addStore(Container $container): Container |
| 76 | 76 | { |
| 77 | - $container->set(static::STORE, function () { |
|
| 77 | + $container->set(static::STORE, function() { |
|
| 78 | 78 | return Store::getInstance(); |
| 79 | 79 | }); |
| 80 | 80 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public function provide(ContainerInterface $container): ContainerInterface |
| 40 | 40 | { |
| 41 | 41 | $container->set(static::BC_FEATURE_FLAG_LOCALE_LISTENER, false); |
| 42 | - $container->set(static::SERVICE_LOCALE, function (ContainerInterface $container): string { |
|
| 42 | + $container->set(static::SERVICE_LOCALE, function(ContainerInterface $container): string { |
|
| 43 | 43 | $localeTransfer = $this->getFactory()->getLocalePlugin()->getLocaleTransfer($container); |
| 44 | 44 | |
| 45 | 45 | $this->getFacade()->setCurrentLocale($localeTransfer); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | public function addLocalePlugin(Container $container): Container |
| 40 | 40 | { |
| 41 | - $container->set(static::PLUGIN_LOCALE, function () { |
|
| 41 | + $container->set(static::PLUGIN_LOCALE, function() { |
|
| 42 | 42 | return $this->getLocalePlugin(); |
| 43 | 43 | }); |
| 44 | 44 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | public function addStore(Container $container): Container |
| 62 | 62 | { |
| 63 | - $container->set(static::STORE, function () { |
|
| 63 | + $container->set(static::STORE, function() { |
|
| 64 | 64 | return $this->getStore(); |
| 65 | 65 | }); |
| 66 | 66 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | protected function addLocale(ContainerInterface $container): ContainerInterface |
| 50 | 50 | { |
| 51 | 51 | $container->set(static::BC_FEATURE_FLAG_LOCALE_LISTENER, false); |
| 52 | - $container->set(static::SERVICE_LOCALE, function (ContainerInterface $container) { |
|
| 52 | + $container->set(static::SERVICE_LOCALE, function(ContainerInterface $container) { |
|
| 53 | 53 | $localeName = $this->getLocaleTransfer($container)->getLocaleName(); |
| 54 | 54 | $this->getFactory()->getStore()->setCurrentLocale($localeName); |
| 55 | 55 | ApplicationEnvironment::initializeLocale($localeName); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | protected function getCurrencySymbolFunction(): TwigFunction |
| 48 | 48 | { |
| 49 | - return new TwigFunction(static::CURRENCY_SYMBOL_FUNCTION_NAME, function (?string $isoCode = null) { |
|
| 49 | + return new TwigFunction(static::CURRENCY_SYMBOL_FUNCTION_NAME, function(?string $isoCode = null) { |
|
| 50 | 50 | return $this->getCurrencySymbol($isoCode); |
| 51 | 51 | }); |
| 52 | 52 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | //Arrange |
| 58 | 58 | $container = $this->createContainer(); |
| 59 | 59 | $eventDispatcherApplicationPlugin = $this->createEventDispatcherApplicationPlugin(); |
| 60 | - $container->set(static::SERVICE_DISPATCHER, function (ContainerInterface $container) { |
|
| 60 | + $container->set(static::SERVICE_DISPATCHER, function(ContainerInterface $container) { |
|
| 61 | 61 | return new SymfonyEventDispatcher(); |
| 62 | 62 | }); |
| 63 | 63 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | //Arrange |
| 78 | 78 | $container = $this->createContainer(); |
| 79 | 79 | $eventDispatcherApplicationPlugin = $this->createEventDispatcherApplicationPlugin(); |
| 80 | - $container->set(static::SERVICE_DISPATCHER, function (ContainerInterface $container) { |
|
| 80 | + $container->set(static::SERVICE_DISPATCHER, function(ContainerInterface $container) { |
|
| 81 | 81 | $eventDispatcher = new SymfonyEventDispatcher(); |
| 82 | 82 | |
| 83 | 83 | $eventDispatcher->addSubscriber($this->createDummyEventSubscriber()); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | { |
| 38 | 38 | $app[static::BC_FEATURE_FLAG_TWIG_TRANSLATOR] = true; |
| 39 | 39 | $app['twig'] = $app->share( |
| 40 | - $app->extend('twig', function (Environment $twig) use ($app) { |
|
| 40 | + $app->extend('twig', function(Environment $twig) use ($app) { |
|
| 41 | 41 | if (!$app[static::BC_FEATURE_FLAG_TWIG_TRANSLATOR]) { |
| 42 | 42 | return $twig; |
| 43 | 43 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | //Arrange |
| 58 | 58 | $container = $this->createContainer(); |
| 59 | 59 | $eventDispatcherApplicationPlugin = $this->createEventDispatcherApplicationPlugin(); |
| 60 | - $container->set(static::SERVICE_DISPATCHER, function (ContainerInterface $container) { |
|
| 60 | + $container->set(static::SERVICE_DISPATCHER, function(ContainerInterface $container) { |
|
| 61 | 61 | return new SymfonyEventDispatcher(); |
| 62 | 62 | }); |
| 63 | 63 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | //Arrange |
| 78 | 78 | $container = $this->createContainer(); |
| 79 | 79 | $eventDispatcherApplicationPlugin = $this->createEventDispatcherApplicationPlugin(); |
| 80 | - $container->set(static::SERVICE_DISPATCHER, function (ContainerInterface $container) { |
|
| 80 | + $container->set(static::SERVICE_DISPATCHER, function(ContainerInterface $container) { |
|
| 81 | 81 | $eventDispatcher = new SymfonyEventDispatcher(); |
| 82 | 82 | |
| 83 | 83 | $eventDispatcher->addSubscriber($this->createDummyEventSubscriber()); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | protected function addEventDispatcherPlugins(Container $container): Container |
| 38 | 38 | { |
| 39 | - $container->set(static::PLUGINS_EVENT_DISPATCHER_PLUGINS, function (Container $container) { |
|
| 39 | + $container->set(static::PLUGINS_EVENT_DISPATCHER_PLUGINS, function(Container $container) { |
|
| 40 | 40 | return $this->getEventDispatcherPlugins(); |
| 41 | 41 | }); |
| 42 | 42 | |