@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | $customerBlacklistIds = $customerProductListCollectionTransfer->getBlacklistIds() ?: []; |
54 | 54 | $customerWhitelistIds = $customerProductListCollectionTransfer->getWhitelistIds() ?: []; |
55 | - $cartChangeSkus = array_map(function (ItemTransfer $itemTransfer) { |
|
55 | + $cartChangeSkus = array_map(function(ItemTransfer $itemTransfer) { |
|
56 | 56 | return $itemTransfer->getSku(); |
57 | 57 | }, $cartChangeTransfer->getItems()->getArrayCopy()); |
58 | 58 |
@@ -84,7 +84,7 @@ |
||
84 | 84 | $discountFacadeMock |
85 | 85 | ->expects($this->exactly(2)) |
86 | 86 | ->method('queryStringCompare') |
87 | - ->willReturnCallback(function (ClauseTransfer $clauseTransfer, string $customerGroupName) { |
|
87 | + ->willReturnCallback(function(ClauseTransfer $clauseTransfer, string $customerGroupName) { |
|
88 | 88 | return $clauseTransfer->getValue() === strtolower($customerGroupName); |
89 | 89 | }); |
90 | 90 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $resolver->setRequired(PriceVolumeCollectionDataProvider::OPTION_FRACTION_DIGITS); |
60 | 60 | |
61 | 61 | $resolver->setDefaults([ |
62 | - 'validation_groups' => function () { |
|
62 | + 'validation_groups' => function() { |
|
63 | 63 | return [Constraint::DEFAULT_GROUP, static::VALIDATION_VOLUMES_GROUP]; |
64 | 64 | }, |
65 | 65 | ]); |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | { |
158 | 158 | $savedPriceProductVolumeItemTransfers = []; |
159 | 159 | |
160 | - return function (PriceProductVolumeItemTransfer $priceProductVolumeItemTransfer, ExecutionContextInterface $context) use (&$savedPriceProductVolumeItemTransfers) { |
|
160 | + return function(PriceProductVolumeItemTransfer $priceProductVolumeItemTransfer, ExecutionContextInterface $context) use (&$savedPriceProductVolumeItemTransfers) { |
|
161 | 161 | if (empty(array_filter($priceProductVolumeItemTransfer->toArray()))) { |
162 | 162 | return; |
163 | 163 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | { |
73 | 73 | $dependencyProviderPluginUsages = $this->getFacade()->getInProjectDependencyProviderUsedPlugins(); |
74 | 74 | |
75 | - $streamCsv = function () use ($dependencyProviderPluginUsages) { |
|
75 | + $streamCsv = function() use ($dependencyProviderPluginUsages) { |
|
76 | 76 | $resource = fopen('php://output', 'w'); |
77 | 77 | $header = ['organization', 'module', 'dependency_provider_class_name', 'plugin_organization', 'plugin_application', 'plugin_module', 'plugin_class_name']; |
78 | 78 | fputcsv($resource, $header); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | */ |
67 | 67 | protected function filterPriceData(array $priceData, string $excludeKey): array |
68 | 68 | { |
69 | - $priceData = array_filter($priceData, function ($v, $k) use ($excludeKey) { |
|
69 | + $priceData = array_filter($priceData, function($v, $k) use ($excludeKey) { |
|
70 | 70 | if ($k === $excludeKey) { |
71 | 71 | return true; |
72 | 72 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | throw new SkippedTestError('Warning: not in suite environment'); |
48 | 48 | } |
49 | 49 | |
50 | - $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function (Container $container) { |
|
50 | + $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function(Container $container) { |
|
51 | 51 | return [ |
52 | 52 | $container->getLocator()->rabbitMq()->client()->createQueueAdapter(), |
53 | 53 | ]; |
@@ -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 | ]; |
@@ -237,7 +237,7 @@ |
||
237 | 237 | protected function getResourceIdFromResourceType(string $resourceType): string |
238 | 238 | { |
239 | 239 | $resourceTypeExploded = explode('-', $resourceType); |
240 | - $resourceTypeCamelCased = array_map(function ($value) { |
|
240 | + $resourceTypeCamelCased = array_map(function($value) { |
|
241 | 241 | return ucfirst($this->textInflector->singularize($value)); |
242 | 242 | }, $resourceTypeExploded); |
243 | 243 |
@@ -118,7 +118,7 @@ |
||
118 | 118 | */ |
119 | 119 | protected function instantiateConstraintFromConfig(): callable |
120 | 120 | { |
121 | - return function (array $validatorConfig): Constraint { |
|
121 | + return function(array $validatorConfig): Constraint { |
|
122 | 122 | $shortClassName = key($validatorConfig); |
123 | 123 | $parameters = $this->getParameters($validatorConfig); |
124 | 124 |