@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | protected function addFactFinderSdkClient(Container $container) |
34 | 34 | { |
35 | - $container[static::FACT_FINDER_SDK_CLIENT] = function (Container $container) { |
|
35 | + $container[static::FACT_FINDER_SDK_CLIENT] = function(Container $container) { |
|
36 | 36 | return $container->getLocator()->factFinderSdk()->client(); |
37 | 37 | }; |
38 | 38 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | public function register(Application $app) |
35 | 35 | { |
36 | 36 | $app['twig'] = $app->share( |
37 | - $app->extend('twig', function (Twig_Environment $twig) use ($app) { |
|
37 | + $app->extend('twig', function(Twig_Environment $twig) use ($app) { |
|
38 | 38 | $twig->addFunction( |
39 | 39 | 'fact_finder_recommendations', |
40 | 40 | $this->createRecommendationsFunction($twig, $app) |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | ); |
46 | 46 | |
47 | 47 | $app['twig'] = $app->share( |
48 | - $app->extend('twig', function (Twig_Environment $twig) use ($app) { |
|
48 | + $app->extend('twig', function(Twig_Environment $twig) use ($app) { |
|
49 | 49 | $twig->addFunction( |
50 | 50 | 'fact_finder_product_campaigns', |
51 | 51 | $this->createProductCampaignsFunction($twig, $app) |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | ); |
57 | 57 | |
58 | 58 | $app['twig'] = $app->share( |
59 | - $app->extend('twig', function (Twig_Environment $twig) use ($app) { |
|
59 | + $app->extend('twig', function(Twig_Environment $twig) use ($app) { |
|
60 | 60 | $twig->addFunction( |
61 | 61 | 'fact_finder_shopping_cart_campaigns', |
62 | 62 | $this->createShoppingCartCampaignsFunction($twig, $app) |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | { |
78 | 78 | $options = ['is_safe' => ['html']]; |
79 | 79 | |
80 | - return new Twig_SimpleFunction('fact_finder_recommendations', function (array $params, $templatePath) use ($twig, $app) { |
|
80 | + return new Twig_SimpleFunction('fact_finder_recommendations', function(array $params, $templatePath) use ($twig, $app) { |
|
81 | 81 | |
82 | 82 | $recommendationsDataProvider = $this->getFactory() |
83 | 83 | ->createRecommendationsDataProvider(); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | { |
103 | 103 | $options = ['is_safe' => ['html']]; |
104 | 104 | |
105 | - return new Twig_SimpleFunction('fact_finder_product_campaigns', function (array $params, $templatePath) use ($twig, $app) { |
|
105 | + return new Twig_SimpleFunction('fact_finder_product_campaigns', function(array $params, $templatePath) use ($twig, $app) { |
|
106 | 106 | |
107 | 107 | $productCampaignsDataProvider = $this->getFactory() |
108 | 108 | ->createProductCampaignsDataProvider(); |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | { |
128 | 128 | $options = ['is_safe' => ['html']]; |
129 | 129 | |
130 | - return new Twig_SimpleFunction('fact_finder_shopping_cart_campaigns', function (array $params, $templatePath) use ($twig, $app) { |
|
130 | + return new Twig_SimpleFunction('fact_finder_shopping_cart_campaigns', function(array $params, $templatePath) use ($twig, $app) { |
|
131 | 131 | |
132 | 132 | $shoppingCartCampaignsDataProvider = $this->getFactory() |
133 | 133 | ->createShoppingCartCampaignsDataProvider(); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function provideClients(Container $container) |
36 | 36 | { |
37 | - $container[self::FACT_FINDER_CLIENT] = function () use ($container) { |
|
37 | + $container[self::FACT_FINDER_CLIENT] = function() use ($container) { |
|
38 | 38 | $factFinderClient = $container->getLocator() |
39 | 39 | ->factFinderSdk() |
40 | 40 | ->client(); |