@@ -54,16 +54,16 @@ |
||
54 | 54 | */ |
55 | 55 | public function findTaxRate(int $idTaxRate): ?TaxRateTransfer |
56 | 56 | { |
57 | - $taxRateEntity = $this->getFactory()->createTaxRateQuery()->findOneByIdTaxRate($idTaxRate); |
|
57 | + $taxRateEntity = $this->getFactory()->createTaxRateQuery()->findOneByIdTaxRate($idTaxRate); |
|
58 | 58 | |
59 | 59 | if ($taxRateEntity === null) { |
60 | 60 | return $taxRateEntity; |
61 | 61 | } |
62 | 62 | |
63 | - return $this->getFactory()->createTaxRateMapper()->mapTaxRateEntityToTaxRateTransfer( |
|
64 | - $taxRateEntity, |
|
65 | - new TaxRateTransfer() |
|
66 | - ); |
|
63 | + return $this->getFactory()->createTaxRateMapper()->mapTaxRateEntityToTaxRateTransfer( |
|
64 | + $taxRateEntity, |
|
65 | + new TaxRateTransfer() |
|
66 | + ); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return; |
42 | 42 | } |
43 | 43 | |
44 | - $priceKeys = array_map(function (PriceProductMerchantRelationshipStorageTransfer $priceProductMerchantRelationshipStorageTransfer) { |
|
44 | + $priceKeys = array_map(function(PriceProductMerchantRelationshipStorageTransfer $priceProductMerchantRelationshipStorageTransfer) { |
|
45 | 45 | return $priceProductMerchantRelationshipStorageTransfer->getPriceKey(); |
46 | 46 | }, $priceProductMerchantRelationshipStorageTransfers); |
47 | 47 |
@@ -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 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return; |
42 | 42 | } |
43 | 43 | |
44 | - $priceKeys = array_map(function (PriceProductMerchantRelationshipStorageTransfer $priceProductMerchantRelationshipStorageTransfer) { |
|
44 | + $priceKeys = array_map(function(PriceProductMerchantRelationshipStorageTransfer $priceProductMerchantRelationshipStorageTransfer) { |
|
45 | 45 | return $priceProductMerchantRelationshipStorageTransfer->getPriceKey(); |
46 | 46 | }, $priceProductMerchantRelationshipStorageTransfers); |
47 | 47 |
@@ -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 |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | protected function getControllerSourceDirectories(string $moduleName): array |
97 | 97 | { |
98 | - $directories = array_map(function ($directory) use ($moduleName) { |
|
98 | + $directories = array_map(function($directory) use ($moduleName) { |
|
99 | 99 | return sprintf($directory, $moduleName); |
100 | 100 | }, $this->sourceDirectories); |
101 | 101 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | protected function getExistingSourceDirectories(array $dirs): array |
111 | 111 | { |
112 | - return array_filter($dirs, function ($directory) { |
|
112 | + return array_filter($dirs, function($directory) { |
|
113 | 113 | return (bool)glob($directory, GLOB_ONLYDIR); |
114 | 114 | }); |
115 | 115 | } |
@@ -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 |