@@ -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 | |
@@ -31,27 +31,27 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function provideBusinessLayerDependencies(Container $container) |
| 33 | 33 | { |
| 34 | - $container[static::FACADE_LOCALE] = function (Container $container) { |
|
| 34 | + $container[static::FACADE_LOCALE] = function(Container $container) { |
|
| 35 | 35 | return new EcondaToLocaleFacadeBridge($container->getLocator()->locale()->facade()); |
| 36 | 36 | }; |
| 37 | 37 | |
| 38 | - $container[self::FACADE_PROPEL] = function (Container $container) { |
|
| 38 | + $container[self::FACADE_PROPEL] = function(Container $container) { |
|
| 39 | 39 | return new EcondaToPropelFacadeBridge($container->getLocator()->propel()->facade()); |
| 40 | 40 | }; |
| 41 | 41 | |
| 42 | - $container[self::FACADE_PRICE_PRODUCT] = function (Container $container) { |
|
| 42 | + $container[self::FACADE_PRICE_PRODUCT] = function(Container $container) { |
|
| 43 | 43 | return new EcondaToPriceProductFacadeBridge($container->getLocator()->priceProduct()->facade()); |
| 44 | 44 | }; |
| 45 | 45 | |
| 46 | - $container[self::QUERY_CONTAINER_PRODUCT_IMAGE] = function (Container $container) { |
|
| 46 | + $container[self::QUERY_CONTAINER_PRODUCT_IMAGE] = function(Container $container) { |
|
| 47 | 47 | return $container->getLocator()->productImage()->queryContainer(); |
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | - $container[self::QUERY_CONTAINER_PRODUCT_CATEGORY] = function (Container $container) { |
|
| 50 | + $container[self::QUERY_CONTAINER_PRODUCT_CATEGORY] = function(Container $container) { |
|
| 51 | 51 | return $container->getLocator()->productCategory()->queryContainer(); |
| 52 | 52 | }; |
| 53 | 53 | |
| 54 | - $container[self::FILE_PLUGINS] = function () { |
|
| 54 | + $container[self::FILE_PLUGINS] = function() { |
|
| 55 | 55 | return [ |
| 56 | 56 | 'products' => new ProductsPlugin(), |
| 57 | 57 | 'categories' => new CategoryPlugin(), |