@@ -49,16 +49,16 @@ |
||
49 | 49 | protected function getDevelopmentFactory(array $composerDependency) |
50 | 50 | { |
51 | 51 | $developmentFactory = Stub::make(DevelopmentBusinessFactory::class, [ |
52 | - 'createModuleDependencyParser' => function () { |
|
52 | + 'createModuleDependencyParser' => function() { |
|
53 | 53 | return Stub::makeEmpty(ModuleDependencyParserInterface::class, [ |
54 | - 'parseOutgoingDependencies' => function () { |
|
54 | + 'parseOutgoingDependencies' => function() { |
|
55 | 55 | return new DependencyCollectionTransfer(); |
56 | 56 | }, |
57 | 57 | ]); |
58 | 58 | }, |
59 | - 'createComposerDependencyParser' => function () use ($composerDependency) { |
|
59 | + 'createComposerDependencyParser' => function() use ($composerDependency) { |
|
60 | 60 | return Stub::makeEmpty(ComposerDependencyParserInterface::class, [ |
61 | - 'getComposerDependencyComparison' => function () use ($composerDependency) { |
|
61 | + 'getComposerDependencyComparison' => function() use ($composerDependency) { |
|
62 | 62 | return [$composerDependency]; |
63 | 63 | }, |
64 | 64 | ]); |
@@ -82,7 +82,7 @@ |
||
82 | 82 | $keys = array_slice($this->storageClient->getKeys($this->getSearchTerm()), 0, $this->defaultPageLength); |
83 | 83 | } |
84 | 84 | |
85 | - $keys = array_map(function (string $key) { |
|
85 | + $keys = array_map(function(string $key) { |
|
86 | 86 | return str_replace(static::KV_PREFIX, '', $key); |
87 | 87 | }, $keys); |
88 | 88 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | protected function addStorageClient(Container $container): Container |
57 | 57 | { |
58 | - $container->set(static::CLIENT_STORAGE, function (Container $container) { |
|
58 | + $container->set(static::CLIENT_STORAGE, function(Container $container) { |
|
59 | 59 | return $container->getLocator()->storage()->client(); |
60 | 60 | }); |
61 | 61 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | protected function addUtilSanitizeService(Container $container): Container |
71 | 71 | { |
72 | - $container->set(static::SERVICE_UTIL_SANITIZE, function (Container $container) { |
|
72 | + $container->set(static::SERVICE_UTIL_SANITIZE, function(Container $container) { |
|
73 | 73 | return new StorageToUtilSanitizeServiceBridge($container->getLocator()->utilSanitize()->service()); |
74 | 74 | }); |
75 | 75 |
@@ -269,7 +269,7 @@ |
||
269 | 269 | |
270 | 270 | $process = new Process(explode(' ', $command), $this->config->getPathToRoot()); |
271 | 271 | $process->setTimeout($this->config->getProcessTimeout()); |
272 | - $process->run(function ($type, $buffer) { |
|
272 | + $process->run(function($type, $buffer) { |
|
273 | 273 | echo $buffer; |
274 | 274 | }); |
275 | 275 |
@@ -269,7 +269,7 @@ |
||
269 | 269 | |
270 | 270 | $process = new Process(explode(' ', $command), $this->config->getPathToRoot()); |
271 | 271 | $process->setTimeout($this->config->getProcessTimeout()); |
272 | - $process->run(function ($type, $buffer) { |
|
272 | + $process->run(function($type, $buffer) { |
|
273 | 273 | echo $buffer; |
274 | 274 | }); |
275 | 275 |
@@ -90,7 +90,7 @@ |
||
90 | 90 | public function persistProductAbstractPriceCollection( |
91 | 91 | ProductAbstractTransfer $productAbstractTransfer |
92 | 92 | ): ProductAbstractTransfer { |
93 | - return $this->handleDatabaseTransaction(function () use ($productAbstractTransfer) { |
|
93 | + return $this->handleDatabaseTransaction(function() use ($productAbstractTransfer) { |
|
94 | 94 | return $this->executePersistProductAbstractPriceCollectionTransaction($productAbstractTransfer); |
95 | 95 | }); |
96 | 96 | } |
@@ -90,7 +90,7 @@ |
||
90 | 90 | public function persistProductConcretePriceCollection( |
91 | 91 | ProductConcreteTransfer $productConcreteTransfer |
92 | 92 | ): ProductConcreteTransfer { |
93 | - return $this->handleDatabaseTransaction(function () use ($productConcreteTransfer) { |
|
93 | + return $this->handleDatabaseTransaction(function() use ($productConcreteTransfer) { |
|
94 | 94 | return $this->executePersistProductConcretePriceCollectionTransaction($productConcreteTransfer); |
95 | 95 | }); |
96 | 96 | } |
@@ -82,8 +82,7 @@ |
||
82 | 82 | protected function getPrice(OrderTransfer $orderTransfer, ShipmentPriceTransfer $shipmentMethodPriceTransfer): ?int |
83 | 83 | { |
84 | 84 | return $orderTransfer->getPriceMode() === ShipmentConstants::PRICE_MODE_GROSS ? |
85 | - $shipmentMethodPriceTransfer->getDefaultGrossPrice() : |
|
86 | - $shipmentMethodPriceTransfer->getDefaultNetPrice(); |
|
85 | + $shipmentMethodPriceTransfer->getDefaultGrossPrice() : $shipmentMethodPriceTransfer->getDefaultNetPrice(); |
|
87 | 86 | } |
88 | 87 | |
89 | 88 | /** |
@@ -190,8 +190,7 @@ |
||
190 | 190 | protected function getPriceByMode(QuoteTransfer $quoteTransfer, ShipmentPriceTransfer $shipmentMethodPriceTransfer): ?int |
191 | 191 | { |
192 | 192 | return $quoteTransfer->getPriceMode() === ShipmentConstants::PRICE_MODE_GROSS ? |
193 | - $shipmentMethodPriceTransfer->getDefaultGrossPrice() : |
|
194 | - $shipmentMethodPriceTransfer->getDefaultNetPrice(); |
|
193 | + $shipmentMethodPriceTransfer->getDefaultGrossPrice() : $shipmentMethodPriceTransfer->getDefaultNetPrice(); |
|
195 | 194 | } |
196 | 195 | |
197 | 196 | /** |