@@ -32,27 +32,27 @@ |
||
32 | 32 | */ |
33 | 33 | public function provideBusinessLayerDependencies(Container $container) |
34 | 34 | { |
35 | - $container[static::FACADE_LOCALE] = function (Container $container) { |
|
35 | + $container[static::FACADE_LOCALE] = function(Container $container) { |
|
36 | 36 | return new EcondaToLocaleBridge($container->getLocator()->locale()->facade()); |
37 | 37 | }; |
38 | 38 | |
39 | - $container[self::FACADE_PROPEL] = function (Container $container) { |
|
39 | + $container[self::FACADE_PROPEL] = function(Container $container) { |
|
40 | 40 | return new EcondaToPropelBridge($container->getLocator()->propel()->facade()); |
41 | 41 | }; |
42 | 42 | |
43 | - $container[self::FACADE_PRICE] = function (Container $container) { |
|
43 | + $container[self::FACADE_PRICE] = function(Container $container) { |
|
44 | 44 | return new EcondaToPriceBridge($container->getLocator()->price()->facade()); |
45 | 45 | }; |
46 | 46 | |
47 | - $container[self::QUERY_CONTAINER_PRODUCT_IMAGE] = function (Container $container) { |
|
47 | + $container[self::QUERY_CONTAINER_PRODUCT_IMAGE] = function(Container $container) { |
|
48 | 48 | return $container->getLocator()->productImage()->queryContainer(); |
49 | 49 | }; |
50 | 50 | |
51 | - $container[self::QUERY_CONTAINER_PRODUCT_CATEGORY] = function (Container $container) { |
|
51 | + $container[self::QUERY_CONTAINER_PRODUCT_CATEGORY] = function(Container $container) { |
|
52 | 52 | return $container->getLocator()->productCategory()->queryContainer(); |
53 | 53 | }; |
54 | 54 | |
55 | - $container[self::FILE_PLUGINS] = function () { |
|
55 | + $container[self::FILE_PLUGINS] = function() { |
|
56 | 56 | return [ |
57 | 57 | 'products' => new ProductsPlugin(), |
58 | 58 | 'categories' => new CategoryPlugin(), |
@@ -50,7 +50,7 @@ |
||
50 | 50 | $fileContent = $this->getFacade()->getFileContent($type, $this->getLocale($request)); |
51 | 51 | |
52 | 52 | return $this->streamedResponse( |
53 | - function () use ($fileContent) { |
|
53 | + function() use ($fileContent) { |
|
54 | 54 | echo $fileContent; |
55 | 55 | }, |
56 | 56 | 200, |
@@ -229,7 +229,7 @@ |
||
229 | 229 | $this->createCriteriaBuilderContainer() |
230 | 230 | ); |
231 | 231 | |
232 | - $factory->registerWorkerCallback(self::CRITERIA_BUILDER_FACTORY_WORKER, function () use ($factory) { |
|
232 | + $factory->registerWorkerCallback(self::CRITERIA_BUILDER_FACTORY_WORKER, function() use ($factory) { |
|
233 | 233 | return $factory->buildWorker(CriteriaBuilderFactoryWorker::class); |
234 | 234 | }); |
235 | 235 |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | protected function getChildren(array $node, array $data, $nested = true) |
69 | 69 | { |
70 | - $children = array_filter($data, function ($item) use ($node) { |
|
70 | + $children = array_filter($data, function($item) use ($node) { |
|
71 | 71 | return ((int)$item[static::FK_PARENT_CATEGORY_NODE] === (int)$node[static::ID_CATEGORY_NODE_QUERY_FIELD]); |
72 | 72 | }); |
73 | 73 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | protected function getParents(array $node, array $data) |
114 | 114 | { |
115 | - $parents = array_filter($data, function ($item) use ($node) { |
|
115 | + $parents = array_filter($data, function($item) use ($node) { |
|
116 | 116 | return ((int)$item[static::ID_CATEGORY_NODE_QUERY_FIELD] === (int)$node[static::FK_PARENT_CATEGORY_NODE]); |
117 | 117 | }); |
118 | 118 |