@@ -27,11 +27,11 @@ |
||
| 27 | 27 | { |
| 28 | 28 | $container = parent::provideBusinessLayerDependencies($container); |
| 29 | 29 | |
| 30 | - $container[static::SYMFONY_FILE_SYSTEM] = function () { |
|
| 30 | + $container[static::SYMFONY_FILE_SYSTEM] = function() { |
|
| 31 | 31 | return new Filesystem(); |
| 32 | 32 | }; |
| 33 | 33 | |
| 34 | - $container[static::SYMFONY_FINDER] = function () { |
|
| 34 | + $container[static::SYMFONY_FINDER] = function() { |
|
| 35 | 35 | return new Finder(); |
| 36 | 36 | }; |
| 37 | 37 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | protected function addUtilEncodingService(Container $container) |
| 40 | 40 | { |
| 41 | - $container[static::SERVICE_UTIL_ENCODING] = function (Container $container) { |
|
| 41 | + $container[static::SERVICE_UTIL_ENCODING] = function(Container $container) { |
|
| 42 | 42 | return new PropelQueryBuilderToUtilEncodingBridge($container->getLocator()->utilEncoding()->service()); |
| 43 | 43 | }; |
| 44 | 44 | return $container; |
@@ -24,11 +24,11 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function provideBusinessLayerDependencies(Container $container) |
| 26 | 26 | { |
| 27 | - $container[self::CLIENT_QUEUE] = function (Container $container) { |
|
| 27 | + $container[self::CLIENT_QUEUE] = function(Container $container) { |
|
| 28 | 28 | return $container->getLocator()->queue()->client(); |
| 29 | 29 | }; |
| 30 | 30 | |
| 31 | - $container[self::QUEUE_MESSAGE_PROCESSOR_PLUGINS] = function (Container $container) { |
|
| 31 | + $container[self::QUEUE_MESSAGE_PROCESSOR_PLUGINS] = function(Container $container) { |
|
| 32 | 32 | return $this->getProcessorMessagePlugins($container); |
| 33 | 33 | }; |
| 34 | 34 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function provideStorageClient(Container $container) |
| 36 | 36 | { |
| 37 | - $container[self::CLIENT_STORAGE] = function (Container $container) { |
|
| 37 | + $container[self::CLIENT_STORAGE] = function(Container $container) { |
|
| 38 | 38 | return $container->getLocator()->storage()->client(); |
| 39 | 39 | }; |
| 40 | 40 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | protected function addUtilTextService(Container $container) |
| 37 | 37 | { |
| 38 | - $container[static::SERVICE_UTIL_TEXT] = function (Container $container) { |
|
| 38 | + $container[static::SERVICE_UTIL_TEXT] = function(Container $container) { |
|
| 39 | 39 | return new TwigToUtilTextServiceBridge($container->getLocator()->utilText()->service()); |
| 40 | 40 | }; |
| 41 | 41 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | protected function addUtilTextService(Container $container) |
| 37 | 37 | { |
| 38 | - $container[static::SERVICE_UTIL_TEXT] = function (Container $container) { |
|
| 38 | + $container[static::SERVICE_UTIL_TEXT] = function(Container $container) { |
|
| 39 | 39 | return new TwigToUtilTextServiceBridge($container->getLocator()->utilText()->service()); |
| 40 | 40 | }; |
| 41 | 41 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function sort(array $relationProducts) |
| 21 | 21 | { |
| 22 | - usort($relationProducts, function (StorageProductAbstractRelationTransfer $leftProduct, StorageProductAbstractRelationTransfer $rightProduct) { |
|
| 22 | + usort($relationProducts, function(StorageProductAbstractRelationTransfer $leftProduct, StorageProductAbstractRelationTransfer $rightProduct) { |
|
| 23 | 23 | return strnatcmp($leftProduct->getOrder(), $rightProduct->getOrder()); |
| 24 | 24 | }); |
| 25 | 25 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | protected function provideCollectorFacade(Container $container) |
| 46 | 46 | { |
| 47 | - $container[self::FACADE_COLLECTOR] = function (Container $container) { |
|
| 47 | + $container[self::FACADE_COLLECTOR] = function(Container $container) { |
|
| 48 | 48 | return new NavigationCollectorToCollectorBridge($container->getLocator()->collector()->facade()); |
| 49 | 49 | }; |
| 50 | 50 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | protected function provideNavigationFacade(Container $container) |
| 58 | 58 | { |
| 59 | - $container[self::FACADE_NAVIGATION] = function (Container $container) { |
|
| 59 | + $container[self::FACADE_NAVIGATION] = function(Container $container) { |
|
| 60 | 60 | return new NavigationCollectorToNavigationBridge($container->getLocator()->navigation()->facade()); |
| 61 | 61 | }; |
| 62 | 62 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | protected function provideDataReaderService(Container $container) |
| 70 | 70 | { |
| 71 | - $container[self::SERVICE_DATA_READER] = function (Container $container) { |
|
| 71 | + $container[self::SERVICE_DATA_READER] = function(Container $container) { |
|
| 72 | 72 | return $container->getLocator()->utilDataReader()->service(); |
| 73 | 73 | }; |
| 74 | 74 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | protected function provideTouchQueryContainer(Container $container) |
| 82 | 82 | { |
| 83 | - $container[self::QUERY_CONTAINER_TOUCH] = function (Container $container) { |
|
| 83 | + $container[self::QUERY_CONTAINER_TOUCH] = function(Container $container) { |
|
| 84 | 84 | return $container->getLocator()->touch()->queryContainer(); |
| 85 | 85 | }; |
| 86 | 86 | } |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | return array_udiff( |
| 98 | 98 | $compareWithProducts, |
| 99 | 99 | $upSellingProducts, |
| 100 | - function (StorageProductAbstractRelationTransfer $a, StorageProductAbstractRelationTransfer $b) { |
|
| 100 | + function(StorageProductAbstractRelationTransfer $a, StorageProductAbstractRelationTransfer $b) { |
|
| 101 | 101 | return strcasecmp($a->getSku(), $b->getSku()); |
| 102 | 102 | } |
| 103 | 103 | ); |