@@ -49,7 +49,7 @@ |
||
| 49 | 49 | */ |
| 50 | 50 | public function updateQuoteCompanyUsers(QuoteTransfer $quoteTransfer): QuoteTransfer |
| 51 | 51 | { |
| 52 | - return $this->getTransactionHandler()->handleTransaction(function () use ($quoteTransfer) { |
|
| 52 | + return $this->getTransactionHandler()->handleTransaction(function() use ($quoteTransfer) { |
|
| 53 | 53 | return $this->executeUpdateQuoteCompanyUsersTransaction($quoteTransfer); |
| 54 | 54 | }); |
| 55 | 55 | } |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | } |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | - array_walk_recursive($priceProductConcreteStorageMap, function (SpyPriceProductConcreteStorage $priceProductConcreteStorageEntity) { |
|
| 124 | + array_walk_recursive($priceProductConcreteStorageMap, function(SpyPriceProductConcreteStorage $priceProductConcreteStorageEntity) { |
|
| 125 | 125 | $priceProductConcreteStorageEntity->delete(); |
| 126 | 126 | }); |
| 127 | 127 | } |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | - array_walk_recursive($priceProductAbstractStorageMap, function (SpyPriceProductAbstractStorage $priceProductAbstractStorageEntity) { |
|
| 122 | + array_walk_recursive($priceProductAbstractStorageMap, function(SpyPriceProductAbstractStorage $priceProductAbstractStorageEntity) { |
|
| 123 | 123 | $priceProductAbstractStorageEntity->delete(); |
| 124 | 124 | }); |
| 125 | 125 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | public function install(): void |
| 44 | 44 | { |
| 45 | - $this->getTransactionHandler()->handleTransaction(function () { |
|
| 45 | + $this->getTransactionHandler()->handleTransaction(function() { |
|
| 46 | 46 | $this->executeInstallTransaction(); |
| 47 | 47 | }); |
| 48 | 48 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | parent::setUp(); |
| 42 | 42 | |
| 43 | - $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function (Container $container) { |
|
| 43 | + $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function(Container $container) { |
|
| 44 | 44 | return [ |
| 45 | 45 | $container->getLocator()->rabbitMq()->client()->createQueueAdapter(), |
| 46 | 46 | ]; |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | public function install(): void |
| 44 | 44 | { |
| 45 | - $this->getTransactionHandler()->handleTransaction(function () { |
|
| 45 | + $this->getTransactionHandler()->handleTransaction(function() { |
|
| 46 | 46 | $this->executeInstallTransaction(); |
| 47 | 47 | }); |
| 48 | 48 | } |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | */ |
| 194 | 194 | protected function getAssignedBusinessUnitTransformer(): callable |
| 195 | 195 | { |
| 196 | - return function ($businessUnitCollection): array { |
|
| 196 | + return function($businessUnitCollection): array { |
|
| 197 | 197 | if (!$businessUnitCollection) { |
| 198 | 198 | return []; |
| 199 | 199 | } |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | */ |
| 216 | 216 | private function getAssignedBusinessUnitReverseTransformer(): callable |
| 217 | 217 | { |
| 218 | - return function ($data): CompanyBusinessUnitCollectionTransfer { |
|
| 218 | + return function($data): CompanyBusinessUnitCollectionTransfer { |
|
| 219 | 219 | $companyBusinessUnitCollectionTransfer = new CompanyBusinessUnitCollectionTransfer(); |
| 220 | 220 | foreach ($data as $id) { |
| 221 | 221 | $companyBusinessUnitCollectionTransfer->addCompanyBusinessUnit( |
@@ -173,7 +173,7 @@ |
||
| 173 | 173 | public function configureOptions(OptionsResolver $resolver): void |
| 174 | 174 | { |
| 175 | 175 | $resolver->setDefaults([ |
| 176 | - 'validation_groups' => function (FormInterface $form) { |
|
| 176 | + 'validation_groups' => function(FormInterface $form) { |
|
| 177 | 177 | return [ |
| 178 | 178 | Constraint::DEFAULT_GROUP, |
| 179 | 179 | $form->get(static::PAYMENT_SELECTION)->getData(), |
@@ -53,8 +53,8 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | protected function addConfigProfilerCollector(Application $app) |
| 55 | 55 | { |
| 56 | - $app->extend('data_collectors', function ($collectors) { |
|
| 57 | - $collectors[ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER] = function () { |
|
| 56 | + $app->extend('data_collectors', function($collectors) { |
|
| 57 | + $collectors[ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER] = function() { |
|
| 58 | 58 | return ConfigProfilerCollectorFactory::createConfigProfilerCollector(); |
| 59 | 59 | }; |
| 60 | 60 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | protected function addCollectorTemplates(Application $app) |
| 73 | 73 | { |
| 74 | - $app['data_collector.templates'] = $app->extend('data_collector.templates', function ($templates) { |
|
| 74 | + $app['data_collector.templates'] = $app->extend('data_collector.templates', function($templates) { |
|
| 75 | 75 | $templates[] = [ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER, '@Config/Collector/spryker_config_profiler.html.twig']; |
| 76 | 76 | |
| 77 | 77 | return $templates; |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | protected function addPathToLoader(Application $app) |
| 117 | 117 | { |
| 118 | 118 | $loaderKey = $this->getLoaderKey(); |
| 119 | - $app[$loaderKey] = $app->extend($loaderKey, function (TwigFilesystemLoader $loader) { |
|
| 119 | + $app[$loaderKey] = $app->extend($loaderKey, function(TwigFilesystemLoader $loader) { |
|
| 120 | 120 | $pathToTemplates = $this->getPathToTemplates(); |
| 121 | 121 | if ($pathToTemplates && method_exists($loader, 'addPath')) { |
| 122 | 122 | $loader->addPath($pathToTemplates); |