@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | protected function addCmsProductContentWidgetPlugins(Container $container): Container |
| 39 | 39 | { |
| 40 | - $container[static::PLUGIN_CMS_PRODUCT_CONTENT_WIDGETS] = function () { |
|
| 40 | + $container[static::PLUGIN_CMS_PRODUCT_CONTENT_WIDGETS] = function() { |
|
| 41 | 41 | return $this->getCmsProductContentWidgetPlugins(); |
| 42 | 42 | }; |
| 43 | 43 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | protected function addProductStorageClient(Container $container) |
| 53 | 53 | { |
| 54 | - $container[self::CLIENT_PRODUCT_STORAGE] = function (Container $container) { |
|
| 54 | + $container[self::CLIENT_PRODUCT_STORAGE] = function(Container $container) { |
|
| 55 | 55 | return new CmsContentWidgetProductConnectorToProductStorageClientBridge($container->getLocator()->productStorage()->client()); |
| 56 | 56 | }; |
| 57 | 57 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | ->value('newProducts', 'new') |
| 29 | 29 | ->assert('categoryPath', '\/.+') |
| 30 | 30 | ->value('categoryPath', null) |
| 31 | - ->convert('categoryPath', function ($categoryPath) use ($allowedLocalesPattern) { |
|
| 31 | + ->convert('categoryPath', function($categoryPath) use ($allowedLocalesPattern) { |
|
| 32 | 32 | return preg_replace('#^\/' . $allowedLocalesPattern . '#', '/', $categoryPath); |
| 33 | 33 | }); |
| 34 | 34 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | protected function addProductNewClient(Container $container) |
| 47 | 47 | { |
| 48 | - $container[self::CLIENT_PRODUCT_NEW] = function (Container $container) { |
|
| 48 | + $container[self::CLIENT_PRODUCT_NEW] = function(Container $container) { |
|
| 49 | 49 | return new ProductNewPageToProductNewClientBridge($container->getLocator()->productNew()->client()); |
| 50 | 50 | }; |
| 51 | 51 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | protected function addUrlStorageClient(Container $container) |
| 61 | 61 | { |
| 62 | - $container[self::CLIENT_URL_STORAGE] = function (Container $container) { |
|
| 62 | + $container[self::CLIENT_URL_STORAGE] = function(Container $container) { |
|
| 63 | 63 | return new ProductNewPageToUrlStorageClientBridge($container->getLocator()->urlStorage()->client()); |
| 64 | 64 | }; |
| 65 | 65 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | protected function addCatalogClient(Container $container) |
| 75 | 75 | { |
| 76 | - $container[self::CLIENT_CATALOG] = function (Container $container) { |
|
| 76 | + $container[self::CLIENT_CATALOG] = function(Container $container) { |
|
| 77 | 77 | return new ProductNewPageToCatalogClientBridge($container->getLocator()->catalog()->client()); |
| 78 | 78 | }; |
| 79 | 79 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | protected function addStore($container) |
| 89 | 89 | { |
| 90 | - $container[self::STORE] = function () { |
|
| 90 | + $container[self::STORE] = function() { |
|
| 91 | 91 | return Store::getInstance(); |
| 92 | 92 | }; |
| 93 | 93 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | */ |
| 102 | 102 | protected function addProductNewPageWidgetPlugins($container) |
| 103 | 103 | { |
| 104 | - $container[self::PLUGIN_PRODUCT_NEW_PAGE_WIDGETS] = function () { |
|
| 104 | + $container[self::PLUGIN_PRODUCT_NEW_PAGE_WIDGETS] = function() { |
|
| 105 | 105 | return $this->getProductNewPageWidgetPlugins(); |
| 106 | 106 | }; |
| 107 | 107 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | protected function addCalculationClient(Container $container): Container |
| 42 | 42 | { |
| 43 | - $container[self::CLIENT_CALCULATION] = function (Container $container) { |
|
| 43 | + $container[self::CLIENT_CALCULATION] = function(Container $container) { |
|
| 44 | 44 | return new DiscountWidgetToCalculationClientBridge($container->getLocator()->calculation()->client()); |
| 45 | 45 | }; |
| 46 | 46 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | protected function addCartClient(Container $container): Container |
| 56 | 56 | { |
| 57 | - $container[self::CLIENT_CART] = function (Container $container) { |
|
| 57 | + $container[self::CLIENT_CART] = function(Container $container) { |
|
| 58 | 58 | return new DiscountWidgetToCartClientBridge($container->getLocator()->cart()->client()); |
| 59 | 59 | }; |
| 60 | 60 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | protected function addApplication(Container $container): Container |
| 70 | 70 | { |
| 71 | - $container[self::PLUGIN_APPLICATION] = function () { |
|
| 71 | + $container[self::PLUGIN_APPLICATION] = function() { |
|
| 72 | 72 | $pimplePlugin = new Pimple(); |
| 73 | 73 | return $pimplePlugin->getApplication(); |
| 74 | 74 | }; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function register(Application $app) |
| 26 | 26 | { |
| 27 | 27 | $app['twig'] = $app->share( |
| 28 | - $app->extend('twig', function (\Twig_Environment $twig) use ($app) { |
|
| 28 | + $app->extend('twig', function(\Twig_Environment $twig) use ($app) { |
|
| 29 | 29 | return $this->registerPermissionTwigFunction($twig, $app); |
| 30 | 30 | }) |
| 31 | 31 | ); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | protected function addPermissionClient(Container $container) |
| 39 | 39 | { |
| 40 | - $container[static::CLIENT_PERMISSION] = function (Container $container) { |
|
| 40 | + $container[static::CLIENT_PERMISSION] = function(Container $container) { |
|
| 41 | 41 | return new ShopPermissionToPermissionClientBridge($container->getLocator()->permission()->client()); |
| 42 | 42 | }; |
| 43 | 43 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | protected function addPermissionTwigFunctionPlugins(Container $container) |
| 53 | 53 | { |
| 54 | - $container[static::PERMISSION_TWIG_FUNCTION_PLUGINS] = function (Container $container) { |
|
| 54 | + $container[static::PERMISSION_TWIG_FUNCTION_PLUGINS] = function(Container $container) { |
|
| 55 | 55 | return $this->getPermissionTwigFunctionPlugins(); |
| 56 | 56 | }; |
| 57 | 57 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | protected function addNewsletterClient(Container $container) |
| 39 | 39 | { |
| 40 | - $container[static::CLIENT_NEWSLETTER] = function (Container $container) { |
|
| 40 | + $container[static::CLIENT_NEWSLETTER] = function(Container $container) { |
|
| 41 | 41 | return new NewsletterPageToNewsletterClientBridge($container->getLocator()->newsletter()->client()); |
| 42 | 42 | }; |
| 43 | 43 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | protected function addCustomerClient(Container $container) |
| 53 | 53 | { |
| 54 | - $container[static::CLIENT_CUSTOMER] = function (Container $container) { |
|
| 54 | + $container[static::CLIENT_CUSTOMER] = function(Container $container) { |
|
| 55 | 55 | return new NewsletterPageToCustomerClientBridge($container->getLocator()->customer()->client()); |
| 56 | 56 | }; |
| 57 | 57 | |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function register(Application $app) |
| 26 | 26 | { |
| 27 | 27 | $app['twig'] = $app->share( |
| 28 | - $app->extend('twig', function (\Twig_Environment $twig) use ($app) { |
|
| 28 | + $app->extend('twig', function(\Twig_Environment $twig) use ($app) { |
|
| 29 | 29 | return $this->registerCmsBlockTwigFunction($twig, $app); |
| 30 | 30 | }) |
| 31 | 31 | ); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | protected function addTwigFunctionPlugins(Container $container) |
| 38 | 38 | { |
| 39 | - $container[static::TWIG_FUNCTION_PLUGINS] = function () { |
|
| 39 | + $container[static::TWIG_FUNCTION_PLUGINS] = function() { |
|
| 40 | 40 | return $this->getTwigFunctionPlugins(); |
| 41 | 41 | }; |
| 42 | 42 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | protected function addCmsBlockStorageClient(Container $container) |
| 60 | 60 | { |
| 61 | - $container[static::CLIENT_CMS_BLOCK_STORAGE] = function (Container $container) { |
|
| 61 | + $container[static::CLIENT_CMS_BLOCK_STORAGE] = function(Container $container) { |
|
| 62 | 62 | return new CmsBlockWidgetToCmsBlockStorageClientBridge($container->getLocator()->cmsBlockStorage()->client()); |
| 63 | 63 | }; |
| 64 | 64 | |