@@ -319,7 +319,7 @@ |
||
319 | 319 | { |
320 | 320 | StorageClient::$cachedKeys = []; |
321 | 321 | |
322 | - $getMultiFunctionStub = function ($keys) { |
|
322 | + $getMultiFunctionStub = function($keys) { |
|
323 | 323 | $result = []; |
324 | 324 | foreach ($keys as $key) { |
325 | 325 | $result['kv:' . $key] = '_' . strtoupper($key); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public function register(Application $app) |
53 | 53 | { |
54 | - $app['dispatcher'] = $app->share($app->extend('dispatcher', function (EventDispatcherInterface $dispatcher) { |
|
54 | + $app['dispatcher'] = $app->share($app->extend('dispatcher', function(EventDispatcherInterface $dispatcher) { |
|
55 | 55 | $dispatcher->addListener( |
56 | 56 | KernelEvents::CONTROLLER, |
57 | 57 | [ |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function register(Application $application) |
39 | 39 | { |
40 | 40 | $application['twig'] = $application->share( |
41 | - $application->extend('twig', function (Environment $twig) use ($application) { |
|
41 | + $application->extend('twig', function(Environment $twig) use ($application) { |
|
42 | 42 | $twig->addFunction($this->getNavigationFunction($application)); |
43 | 43 | $twig->addFunction($this->getBreadcrumbFunction($application)); |
44 | 44 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function getNavigationFunction(Application $application) |
58 | 58 | { |
59 | - $navigation = new TwigFunction('navigation', function () use ($application) { |
|
59 | + $navigation = new TwigFunction('navigation', function() use ($application) { |
|
60 | 60 | $navigation = $this->buildNavigation($application); |
61 | 61 | |
62 | 62 | return $navigation; |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | protected function getBreadcrumbFunction(Application $application) |
74 | 74 | { |
75 | - $navigation = new TwigFunction('breadcrumb', function () use ($application) { |
|
75 | + $navigation = new TwigFunction('breadcrumb', function() use ($application) { |
|
76 | 76 | $navigation = $this->buildNavigation($application); |
77 | 77 | |
78 | 78 | return $navigation['path']; |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | private function addBackwardCompatibility(Application $application) |
138 | 138 | { |
139 | 139 | $application['twig.global.variables'] = $application->share( |
140 | - $application->extend('twig.global.variables', function (array $variables) { |
|
140 | + $application->extend('twig.global.variables', function(array $variables) { |
|
141 | 141 | $navigation = $this->getNavigation(); |
142 | 142 | $breadcrumbs = $navigation['path']; |
143 | 143 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | public function register(Application $app) |
37 | 37 | { |
38 | 38 | $app['twig'] = $app->share( |
39 | - $app->extend('twig', function (Environment $twig) { |
|
39 | + $app->extend('twig', function(Environment $twig) { |
|
40 | 40 | $twig->addFunction($this->getCurrencySymbolFunction()); |
41 | 41 | |
42 | 42 | return $twig; |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | protected function getCurrencySymbolFunction() |
66 | 66 | { |
67 | - return new TwigFunction(static::CURRENCY_SYMBOL_FUNCTION_NAME, function ($isoCode = null) { |
|
67 | + return new TwigFunction(static::CURRENCY_SYMBOL_FUNCTION_NAME, function($isoCode = null) { |
|
68 | 68 | return $this->getCurrencySymbol($isoCode); |
69 | 69 | }); |
70 | 70 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function register(Application $app) |
31 | 31 | { |
32 | - $app[static::TWIG_LOADER_YVES] = function () { |
|
32 | + $app[static::TWIG_LOADER_YVES] = function() { |
|
33 | 33 | return $this->getFactory()->createFilesystemLoader(); |
34 | 34 | }; |
35 | 35 | |
@@ -37,8 +37,8 @@ discard block |
||
37 | 37 | $app['twig'] = $app->share( |
38 | 38 | $app->extend( |
39 | 39 | 'twig', |
40 | - function (Environment $twig) use ($app) { |
|
41 | - $callback = function () use ($app) { |
|
40 | + function(Environment $twig) use ($app) { |
|
41 | + $callback = function() use ($app) { |
|
42 | 42 | $fragmentHandler = new FragmentHandler($app['request_stack'], $app['fragment.renderers']); |
43 | 43 | |
44 | 44 | return new HttpKernelRuntime($fragmentHandler); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $twigExtension = $this->getFactory()->createProductAbstractReviewTwigExtension(); |
28 | 28 | |
29 | 29 | $app['twig'] = $app->share( |
30 | - $app->extend('twig', function (Environment $twig) use ($twigExtension) { |
|
30 | + $app->extend('twig', function(Environment $twig) use ($twigExtension) { |
|
31 | 31 | $twig->addExtension($twigExtension); |
32 | 32 | |
33 | 33 | return $twig; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $twigExtension = $this->getFactory()->createNavigationTwigExtension(); |
28 | 28 | |
29 | 29 | $app['twig'] = $app->share( |
30 | - $app->extend('twig', function (Environment $twig) use ($twigExtension) { |
|
30 | + $app->extend('twig', function(Environment $twig) use ($twigExtension) { |
|
31 | 31 | $twig->addExtension($twigExtension); |
32 | 32 | |
33 | 33 | return $twig; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function register(Application $app) |
29 | 29 | { |
30 | 30 | $app['twig'] = $app->share( |
31 | - $app->extend('twig', function (Environment $twig) { |
|
31 | + $app->extend('twig', function(Environment $twig) { |
|
32 | 32 | $twig->addFilter($this->getMoneyFilter()); |
33 | 33 | $twig->addFilter($this->getMoneyRawFilter()); |
34 | 34 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | $moneyFactory = $this->getFactory(); |
55 | 55 | |
56 | - $filter = new TwigFilter('money', function ($money, $withSymbol = true, $isoCode = null) use ($moneyFactory) { |
|
56 | + $filter = new TwigFilter('money', function($money, $withSymbol = true, $isoCode = null) use ($moneyFactory) { |
|
57 | 57 | if (!($money instanceof MoneyTransfer)) { |
58 | 58 | $money = $this->getMoneyTransfer($money, $isoCode); |
59 | 59 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | { |
76 | 76 | $moneyFactory = $this->getFactory(); |
77 | 77 | |
78 | - $filter = new TwigFilter('moneyRaw', function ($money, $isoCode = null) use ($moneyFactory) { |
|
78 | + $filter = new TwigFilter('moneyRaw', function($money, $isoCode = null) use ($moneyFactory) { |
|
79 | 79 | if (!($money instanceof MoneyTransfer)) { |
80 | 80 | $money = $this->getMoneyTransfer($money, $isoCode); |
81 | 81 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | public function register(Application $app) |
34 | 34 | { |
35 | 35 | $app['twig'] = $app->share( |
36 | - $app->extend('twig', function (Environment $twig) { |
|
36 | + $app->extend('twig', function(Environment $twig) { |
|
37 | 37 | $twig->addFilter($this->getFilter()); |
38 | 38 | $twig->addFunction($this->getMoneyFormTableFunction($twig)); |
39 | 39 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | { |
59 | 59 | $moneyFacade = $this->getFacade(); |
60 | 60 | |
61 | - $filter = new TwigFilter('money', function ($money, $withSymbol = true, $isoCode = null) use ($moneyFacade) { |
|
61 | + $filter = new TwigFilter('money', function($money, $withSymbol = true, $isoCode = null) use ($moneyFacade) { |
|
62 | 62 | if (!($money instanceof MoneyTransfer)) { |
63 | 63 | if (is_int($money)) { |
64 | 64 | $money = $moneyFacade->fromInteger($money, $isoCode); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | return new TwigFunction( |
96 | 96 | static::FUNCTION_NAME_MONEY_COLLECTION, |
97 | - function ($moneyValueFormViewCollection) use ($twig) { |
|
97 | + function($moneyValueFormViewCollection) use ($twig) { |
|
98 | 98 | return $twig->render( |
99 | 99 | static::TEMPLATE_PATH_MONEY_TABLE, |
100 | 100 | [ |