@@ -494,7 +494,7 @@ |
||
494 | 494 | $glossaryFacade = new GlossaryFacade(); |
495 | 495 | $container = new Container(); |
496 | 496 | |
497 | - $container[GlossaryDependencyProvider::FACADE_LOCALE] = function (Container $container) { |
|
497 | + $container[GlossaryDependencyProvider::FACADE_LOCALE] = function(Container $container) { |
|
498 | 498 | return $this->localeFacade; |
499 | 499 | }; |
500 | 500 |
@@ -194,8 +194,7 @@ |
||
194 | 194 | FilterFieldTransfer $filterFieldTransfer |
195 | 195 | ): SpySalesOrderQuery { |
196 | 196 | $comparison = $filterFieldTransfer->getType() === static::SEARCH_TYPE_DATE_FROM ? |
197 | - Criteria::GREATER_EQUAL : |
|
198 | - Criteria::LESS_THAN; |
|
197 | + Criteria::GREATER_EQUAL : Criteria::LESS_THAN; |
|
199 | 198 | |
200 | 199 | $salesOrderQuery->filterByCreatedAt($filterFieldTransfer->getValue(), $comparison); |
201 | 200 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | */ |
61 | 61 | public function updateProductLabelRelations(bool $isTouchEnabled = true) |
62 | 62 | { |
63 | - $this->handleDatabaseTransaction(function () use ($isTouchEnabled) { |
|
63 | + $this->handleDatabaseTransaction(function() use ($isTouchEnabled) { |
|
64 | 64 | $this->executeUpdateProductLabelRelationsTransaction($isTouchEnabled); |
65 | 65 | }); |
66 | 66 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function saveShoppingListItemProductOptions(ShoppingListItemTransfer $shoppingListItemTransfer): ShoppingListItemTransfer |
40 | 40 | { |
41 | - $this->getTransactionHandler()->handleTransaction(function () use ($shoppingListItemTransfer) { |
|
41 | + $this->getTransactionHandler()->handleTransaction(function() use ($shoppingListItemTransfer) { |
|
42 | 42 | $this->executeSaveShoppingListItemProductOptionsTransaction($shoppingListItemTransfer); |
43 | 43 | }); |
44 | 44 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | public function saveShoppingListItemProductOptionsInBulk( |
54 | 54 | ShoppingListItemCollectionTransfer $shoppingListItemCollectionTransfer |
55 | 55 | ): ShoppingListItemCollectionTransfer { |
56 | - return $this->getTransactionHandler()->handleTransaction(function () use ($shoppingListItemCollectionTransfer) { |
|
56 | + return $this->getTransactionHandler()->handleTransaction(function() use ($shoppingListItemCollectionTransfer) { |
|
57 | 57 | $this->executeSaveShoppingListItemProductOptionsTransactionInBulk($shoppingListItemCollectionTransfer); |
58 | 58 | |
59 | 59 | return $shoppingListItemCollectionTransfer; |
@@ -270,7 +270,7 @@ |
||
270 | 270 | } |
271 | 271 | |
272 | 272 | // removes null, false and empty strings but leaves 0 (zero) values |
273 | - return array_values(array_filter($value, function ($value) { |
|
273 | + return array_values(array_filter($value, function($value) { |
|
274 | 274 | return (bool)strlen($value); |
275 | 275 | })); |
276 | 276 | } |
@@ -99,7 +99,7 @@ |
||
99 | 99 | } |
100 | 100 | |
101 | 101 | try { |
102 | - $merchantTransfer = $this->getTransactionHandler()->handleTransaction(function () use ($merchantTransfer) { |
|
102 | + $merchantTransfer = $this->getTransactionHandler()->handleTransaction(function() use ($merchantTransfer) { |
|
103 | 103 | return $this->executeUpdateTransaction($merchantTransfer); |
104 | 104 | }); |
105 | 105 | } catch (MerchantNotSavedException $merchantNotSavedException) { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $merchantResponseTransfer = $this->createMerchantResponseTransfer(); |
70 | 70 | |
71 | 71 | try { |
72 | - $merchantTransfer = $this->getTransactionHandler()->handleTransaction(function () use ($merchantTransfer) { |
|
72 | + $merchantTransfer = $this->getTransactionHandler()->handleTransaction(function() use ($merchantTransfer) { |
|
73 | 73 | return $this->executeCreateTransaction($merchantTransfer); |
74 | 74 | }); |
75 | 75 | } catch (MerchantNotSavedException $merchantNotSavedException) { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | putenv(sprintf('%s=%s', static::SPRYKER_CODE_BUCKET, $codeBucket)); |
29 | 29 | |
30 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($oldEnv): void { |
|
30 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($oldEnv): void { |
|
31 | 31 | putenv(sprintf('%s=%s', static::SPRYKER_CODE_BUCKET, $oldEnv)); |
32 | 32 | }); |
33 | 33 | } |
@@ -74,13 +74,13 @@ discard block |
||
74 | 74 | { |
75 | 75 | $logger->info('Download node source'); |
76 | 76 | $process = $this->getProcess($this->getDownloadCommand()); |
77 | - $process->run(function ($type, $buffer) use ($logger) { |
|
77 | + $process->run(function($type, $buffer) use ($logger) { |
|
78 | 78 | $logger->info($buffer); |
79 | 79 | }); |
80 | 80 | |
81 | 81 | $logger->info('Install node.js'); |
82 | 82 | $process = $this->getProcess('sudo -i apt-get install -y nodejs'); |
83 | - $process->run(function ($type, $buffer) use ($logger) { |
|
83 | + $process->run(function($type, $buffer) use ($logger) { |
|
84 | 84 | $logger->info($buffer); |
85 | 85 | }); |
86 | 86 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $logger->info('Installing Yarn'); |
106 | 106 | |
107 | 107 | $process = $this->getProcess($this->getYarnInstallCommand()); |
108 | - $process->run(function ($type, $buffer) use ($logger) { |
|
108 | + $process->run(function($type, $buffer) use ($logger) { |
|
109 | 109 | $logger->info($buffer); |
110 | 110 | }); |
111 | 111 |